852 B
852 B
Error/Exception Handling
Kohana provides both an exception handler and an error handler that transforms errors into exceptions using PHP's ErrorException class. Many details of the error and the internal state of the application is displayed by the handler:
- Exception class
- Error level
- Error message
- Source of the error, with the error line highlighted
- A debug backtrace of the execution flow
- Included files, loaded extensions, and global variables
Example
Click any of the links to toggle the display of additional information:
{{userguide/examples/error}}
Disabling Error/Exception Handling
If you do not want to use the internal error handling, you can disable it when calling [Kohana::init]:
Kohana::init(array('errors' => FALSE));