You are here

public function FlattenException::getAllPrevious in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/debug/Exception/FlattenException.php \Symfony\Component\HttpKernel\Exception\FlattenException::getAllPrevious()
1 call to FlattenException::getAllPrevious()
FlattenException::toArray in vendor/symfony/debug/Exception/FlattenException.php

File

vendor/symfony/debug/Exception/FlattenException.php, line 198

Class

FlattenException
FlattenException wraps a PHP Exception to be able to serialize it.

Namespace

Symfony\Component\HttpKernel\Exception

Code

public function getAllPrevious() {
  $exceptions = array();
  $e = $this;
  while ($e = $e
    ->getPrevious()) {
    $exceptions[] = $e;
  }
  return $exceptions;
}