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;
}