final public static function exceptionHandler(\Throwable $exception)
    {
        if (FEnv::isset("framework.env")) {
            throw new Server500(new \ArrayObject(array("explain" => $exception->getMessage(),
                "trace" => $exception->getTrace(), "line_error" => $exception->getLine(),
                "file_error" => $exception->getFile(), "type_error" => self::errorMap($exception->getCode()))));
        } else {
            die($exception->getMessage());
        }
    }
final public static function exceptionHandler(\Throwable $exception)
    {
        if (FEnv::isset("framework.env")) {
            throw new Server500(new \ArrayObject(array("explain" => $exception->getMessage(),
                "trace" => $exception->getTrace(), "line_error" => $exception->getLine(),
                "file_error" => $exception->getFile(), "type_error" => self::errorMap($exception->getCode()))));
        } else {
            die($exception->getMessage());
        }
    }
final public static function exceptionHandler ( \ Throwable $ exception ) { if ( FEnv :: isset ( "framework.env" ) ) { throw new Server500 ( new \ ArrayObject ( array ( "explain" => $ exception -> getMessage ( ) , "trace" => $ exception -> getTrace ( ) , "line_error" => $ exception -> getLine ( ) , "file_error" => $ exception -> getFile ( ) , "type_error" => self :: errorMap ( $ exception -> getCode ( ) ) ) ) ) ; } else { die ( $ exception -> getMessage ( ) ) ; } }
Set exception handler
@param \Throwable $exception The exception object
@throws Server500 The reporting error
Set exception handler