Jarves\ContentTypes\TypePlugin::exceptionHandler PHP Method

exceptionHandler() public method

public exceptionHandler ( GetResponseForExceptionEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
    public function exceptionHandler(GetResponseForExceptionEvent $event)
    {
        if ($event->getException() instanceof PluginException) {
            return;
        }
        $event->setException(new PluginException(sprintf('The plugin `%s` from bundle `%s` [%s] errored.', $this->plugin['plugin'], $this->bundleName, $this->pluginDef->getController()), null, $event->getException()));
    }