/**
* @return void
*/
public function onKernelException(ExceptionEvent
$event) { if (null ===
$this->controller
) { return;
} $throwable =
$event->
getThrowable();
$request =
$this->
duplicateRequest($throwable,
$event->
getRequest());
try { $response =
$event->
getKernel()->
handle($request, HttpKernelInterface::SUB_REQUEST, false
);
} catch (\Exception
$e) { $f = FlattenException::
createFromThrowable($e);
$this->
logException($e,
sprintf('Exception thrown when handling an exception (%s: %s at %s line %s)',
$f->
getClass(),
$f->
getMessage(),
$e->
getFile(),
$e->
getLine()));
$prev =
$e;
do { if ($throwable ===
$wrapper =
$prev) {