ErrorHandling
Description
Error handling
Error handling features and handlers
Located in /libraries/ErrorHandling.class.php (line 18)
Method Summary
Methods
static exceptionErrorHandler (line 45)
Error handler
Converts standard PHP errors into ErrorException Usage (loaded by default in the MVC framework):
void
exceptionErrorHandler
( $errno, $errstr, $errfile, $errline)
- $errno
- $errstr
- $errfile
- $errline
static exceptionHandler (line 71)
Exception handler Used to cleanly catch exceptions, and is also used as uncaught exception handler.
Prints a nice error message in manialink Usage for catching exceptions:
- try
- {
- //...
- }
- catch(Exception $exception)
- {
- }
void
exceptionHandler
( $exception)
- Exception $exception