Ouzo\ExceptionHandling\ExceptionHandler::lastErrorHandled PHP Method

lastErrorHandled() public static method

public static lastErrorHandled ( )
    public static function lastErrorHandled()
    {
        return self::$errorHandled;
    }

Usage Example

Beispiel #1
0
 public static function shutdownHandler()
 {
     $error = error_get_last();
     if (!ExceptionHandler::lastErrorHandled() && $error && $error['type'] & (E_ERROR | E_USER_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_RECOVERABLE_ERROR)) {
         static::getExceptionHandler()->handleExceptionData(new OuzoExceptionData(500, array(new Error(0, $error['message'])), self::trace($error['file'], $error['line'])));
     }
 }