PHP Class Contao\CoreBundle\EventListener\ExceptionConverterListener

Mostra file Open project: contao/core-bundle Class Usage Examples

Public Methods

Method Description
onKernelException ( GetResponseForExceptionEvent $event ) Maps known exceptions to HTTP exceptions.

Private Methods

Method Description
convertToHttpException ( Exception $exception, string $target ) : Symfony\Component\HttpKernel\Exception\HttpException | null Converts an exception to an HTTP exception.
getTargetClass ( Exception $exception ) : string | null Maps the extension to a target class.

Method Details

onKernelException() public method

Maps known exceptions to HTTP exceptions.
public onKernelException ( GetResponseForExceptionEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent