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
        ];
    }
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
        ];
    }
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 ] ; }
Return throwable data in array format.

@param \Error|\Exception $ex
@param int $offset
@return string[]
Return throwable data in array format .