public static function getExceptionInfo(Throwable $t) : array
    {
        return [
            'type' => get_class($t),
            'message' => $t->getMessage(),
            'code' => $t->getCode(),
            'file' => $t->getFile(),
            'line' => $t->getLine(),
            'trace' => $t->getTraceAsString(),
        ];
    }
public static function getExceptionInfo(Throwable $t) : array
    {
        return [
            'type' => get_class($t),
            'message' => $t->getMessage(),
            'code' => $t->getCode(),
            'file' => $t->getFile(),
            'line' => $t->getLine(),
            'trace' => $t->getTraceAsString(),
        ];
    }
public static function getExceptionInfo ( Throwable $ t ) : array { return [ 'type' => get_class ( $ t ) , 'message' => $ t -> getMessage ( ) , 'code' => $ t -> getCode ( ) , 'file' => $ t -> getFile ( ) , 'line' => $ t -> getLine ( ) , 'trace' => $ t -> getTraceAsString ( ) , ] ; }
Returns exception info in array.

@param Throwable $t the exception to return info on

@return array like:
<pre>
[
'type' => 'Exception',
'message' => 'a message',
'code' => 0,
'file' => '/somePath',
'line' => 434,
'trace' => 'a stack trace',
]
</pre>
Returns exception info in array .