break;
} // There's no specific status code defined in the configuration for this exception
if (!
$throwable instanceof HttpExceptionInterface
) { $class =
new \
ReflectionClass($throwable);
do { if ($attributes =
$class->
getAttributes(WithHttpStatus::
class, \ReflectionAttribute::IS_INSTANCEOF
)) { /** @var WithHttpStatus $instance */
$instance =
$attributes[0
]->
newInstance();
$throwable =
new HttpException($instance->statusCode,
$throwable->
getMessage(),
$throwable,
$instance->headers
);
$event->
setThrowable($throwable);
break;
} } while ($class =
$class->
getParentClass());
} $e = FlattenException::
createFromThrowable($throwable);
$this->
logException($throwable,
sprintf('Uncaught PHP Exception %s: "%s" at %s line %s',
$e->
getClass(),
$e->
getMessage(),
$e->
getFile(),
$e->
getLine()),
$logLevel);
}