public static function getThrowableData($ex, $offset = 0)
    {
        return [
            'message'   => $ex->getMessage(),
            'class'     => get_class($ex),
            'file'      => $ex->getFile(),
            'line'      => $ex->getLine(),
            'code'      => $ex->getCode(),
            'trace'     => static::getTraceElements($ex, $offset),
            'isError'   => $ex instanceof \Error,
            'prev'      => null
        ];
    }