public function FlattenException::toArray in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/debug/Exception/FlattenException.php \Symfony\Component\HttpKernel\Exception\FlattenException::toArray()
File
- vendor/
symfony/ debug/ Exception/ FlattenException.php, line 104
Class
- FlattenException
- FlattenException wraps a PHP Exception to be able to serialize it.
Namespace
Symfony\Component\HttpKernel\ExceptionCode
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;
}