public function FlattenException::getAllPrevious

1 call to FlattenException::getAllPrevious()
FlattenException::toArray in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Exception/FlattenException.php

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Exception/FlattenException.php, line 155

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;
}