src/Statsd/Listener.php
public function onKernelException(GetResponseForExceptionEvent $event)
    {
        $exception = $event->getException();
        if ($exception instanceof HttpExceptionInterface) {
            $code = $event->getException()->getStatusCode();
        } else {
            $code = 'unknown';
        }
        $this->eventDispatcher->dispatch(
            'statsd.exception',
            new StatsdEvent($code)
        );
    }
public function onKernelException(GetResponseForExceptionEvent $event)
    {
        $exception = $event->getException();
        if ($exception instanceof HttpExceptionInterface) {
            $code = $event->getException()->getStatusCode();
        } else {
            $code = 'unknown';
        }
        $this->eventDispatcher->dispatch(
            'statsd.exception',
            new StatsdEvent($code)
        );
    }
onKernelException

@param GetResponseForExceptionEvent $event