Created
July 6, 2020 15:42
-
-
Save pinoywebs123/88e3c64fe21dedde61c48f7914bfb26e to your computer and use it in GitHub Desktop.
Error Handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//load the library Custom class | |
$this->load->library('ErrorHandler'); | |
//store db error to variable | |
$db_error = $this->db->error(); | |
//use the library method and catch the error message | |
echo $var = $this->errorhandler->get_error($db_error['message']); | |
//exit | |
exit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment