Jyxo\ErrorHandler::exception PHP Method

exception() public static method

Adds a caught exception.
public static exception ( Exception $exception, boolean $fire = true ) : boolean
$exception Exception Caught exception
$fire boolean Shall we use FirePHP?
return boolean
    public static function exception(\Exception $exception, bool $fire = true) : bool
    {
        self::log(['type' => self::EXCEPTION, 'text' => $exception->getMessage() . ' [' . $exception->getCode() . ']', 'file' => $exception->getFile(), 'line' => $exception->getLine(), 'trace' => $exception->getTrace(), 'previous' => self::getAllPreviousExceptions($exception)], $fire);
    }