Public Member Functions | |
| CI_Exceptions () | |
| log_exception ($severity, $message, $filepath, $line) | |
| show_404 ($page= '') | |
| show_error ($heading, $message, $template= 'error_general') | |
| show_php_error ($severity, $message, $filepath, $line) | |
Public Attributes | |
| $action | |
| $severity | |
| $message | |
| $filename | |
| $line | |
| $ob_level | |
| $levels | |
| CI_Exceptions::CI_Exceptions | ( | ) |
Constructor
| CI_Exceptions::log_exception | ( | $ | severity, | |
| $ | message, | |||
| $ | filepath, | |||
| $ | line | |||
| ) |
Exception Logger
This function logs PHP generated error messages
private
| string | the error severity | |
| string | the error string | |
| string | the error filepath | |
| string | the error line number |
| CI_Exceptions::show_404 | ( | $ | page = '' |
) |
404 Page Not Found Handler
private
| string |
| CI_Exceptions::show_error | ( | $ | heading, | |
| $ | message, | |||
| $ | template = 'error_general' | |||
| ) |
General Error Page
This function takes an error message as input (either as a string or an array) and displays it using the specified template.
private
| string | the heading | |
| string | the message | |
| string | the template name |
| CI_Exceptions::show_php_error | ( | $ | severity, | |
| $ | message, | |||
| $ | filepath, | |||
| $ | line | |||
| ) |
Native PHP error handler
private
| string | the error severity | |
| string | the error string | |
| string | the error filepath | |
| string | the error line number |
| CI_Exceptions::$action |
| CI_Exceptions::$filename |
| CI_Exceptions::$levels |
Initial value:
array(
E_ERROR => 'Error',
E_WARNING => 'Warning',
E_PARSE => 'Parsing Error',
E_NOTICE => 'Notice',
E_CORE_ERROR => 'Core Error',
E_CORE_WARNING => 'Core Warning',
E_COMPILE_ERROR => 'Compile Error',
E_COMPILE_WARNING => 'Compile Warning',
E_USER_ERROR => 'User Error',
E_USER_WARNING => 'User Warning',
E_USER_NOTICE => 'User Notice',
E_STRICT => 'Runtime Notice'
)
| CI_Exceptions::$line |
| CI_Exceptions::$message |
| CI_Exceptions::$ob_level |
| CI_Exceptions::$severity |
1.5.7.1