Jyxo\FirePhp::exception PHP Method

exception() public static method

Logs an exception.
public static exception ( Exception $e ) : boolean
$e Exception Exception to log
return boolean First exception sending result
    public static function exception(\Exception $e) : bool
    {
        $result = self::trace('Exception: ' . $e->getMessage() . ' [' . $e->getCode() . ']', $e->getFile(), $e->getLine(), $e->getTrace());
        while ($e = $e->getPrevious()) {
            self::trace('Previous exception: ' . $e->getMessage() . ' [' . $e->getCode() . ']', $e->getFile(), $e->getLine(), $e->getTrace());
        }
        return $result;
    }