1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-29 11:17:52 +01:00

Chain exceptions

Also show the chained exceptions, when a previous exception is set.
This commit is contained in:
Barry vd. Heuvel 2014-03-07 14:23:12 +01:00
parent 04f7d4e4c7
commit dc21739880

View File

@ -27,6 +27,9 @@ class ExceptionsCollector extends DataCollector implements Renderable
public function addException(Exception $e)
{
$this->exceptions[] = $e;
if($previous = $e->getPrevious()){
$this->addException($previous);
}
}
/**