Jyxo\ErrorHandler::getAllPreviousExceptions PHP Метод

getAllPreviousExceptions() приватный статический Метод

Returns all exception's previous exceptions.
private static getAllPreviousExceptions ( Exception $exception ) : array
$exception Exception Exception to process
Результат array
    private static function getAllPreviousExceptions(\Exception $exception) : array
    {
        $stack = [];
        $previous = $exception->getPrevious();
        while (null !== $previous) {
            $stack[] = $previous;
            $previous = $previous->getPrevious();
        }
        return $stack;
    }