[ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 205 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
ErrorHandler:: (7 methods):
register()
fatalException()
showExceptionMsg()
fatalShutdown()
logException()
errorHandler()
guessPlugin()
Class: ErrorHandler - X-Ref
Manage the global handling of errors and exceptionsregister() X-Ref |
Register the default error handling |
fatalException($e) X-Ref |
Default Exception handler to show a nice user message before dieing The exception is logged to the error log param: \Throwable $e |
showExceptionMsg($e, $intro = 'Error!') X-Ref |
Convenience method to display an error message for the given Exception param: \Throwable $e param: string $intro |
fatalShutdown() X-Ref |
Last resort to handle fatal errors that still can't be caught |
logException($e) X-Ref |
Log the given exception to the error log param: \Throwable $e return: bool false if the logging failed |
errorHandler($errno, $errstr, $errfile, $errline) X-Ref |
Error handler to log non-exception errors param: int $errno param: string $errstr param: string $errfile param: int $errline return: bool |
guessPlugin($e) X-Ref |
Checks the the stacktrace for plugin files param: \Throwable $e return: false|string |