private function handleException($exception)
{
foreach ($this->exceptionHandlers as $handler) {
if (!$handler->supportsException($exception)) {
continue;
}
$exception = $handler->handleException($exception);
}
if ($exception instanceof Throwable) {
return new FatalThrowableError($exception);
}
return $exception;
}