Method | Description | |
---|---|---|
__construct ( ) | Constructor preventing from creating class instances. | |
exception ( |
Adds a caught exception. | |
handleError ( integer $type, string $message, string $file, integer $line, array $context ) : boolean | Handles errors and logs them. | |
handleException ( |
Catches exceptions and logs them. | |
handleFatalError ( ) | Handles critical errors and logs them. | |
init ( boolean $debug = false ) | Initializes error handling. | |
log ( array $message, boolean $fire = true ) : boolean | Logs a message. | |
setErrorMail ( Jyxo\ErrorMail $errorMail ) | Sets \Jyxo\ErrorMail instance for sending fatal error emails (used by the shutdown function and error handler). |
Method | Description | |
---|---|---|
firephp ( array $message ) : boolean | Sends a message to FirePHP. | |
getAllPreviousExceptions ( |
Returns all exception's previous exceptions. | |
getTraceLog ( array $trace ) : string | Returns trace log. |
final public __construct ( ) |
public static handleError ( integer $type, string $message, string $file, integer $line, array $context ) : boolean | ||
$type | integer | Error type |
$message | string | Error message |
$file | string | File where the error occurred |
$line | integer | Line on which the error occurred |
$context | array | Error context variables |
return | boolean | Was the error processed? |
public static handleException ( |
||
$exception | Uncaught exception |
public static handleFatalError ( ) |
public static setErrorMail ( Jyxo\ErrorMail $errorMail ) | ||
$errorMail | Jyxo\ErrorMail |