File
- drupal/core/vendor/symfony/debug/Symfony/Component/Debug/Exception/FlattenException.php, line 63
Class
- FlattenException
- FlattenException wraps a PHP Exception to be able to serialize it.
Namespace
Symfony\Component\Debug\Exception
Code
public function toArray() {
$exceptions = array();
foreach (array_merge(array(
$this,
), $this
->getAllPrevious()) as $exception) {
$exceptions[] = array(
'message' => $exception
->getMessage(),
'class' => $exception
->getClass(),
'trace' => $exception
->getTrace(),
);
}
return $exceptions;
}