Contao\CoreBundle\EventListener\ExceptionConverterListener::getTargetClass PHP Method

getTargetClass() private method

Maps the extension to a target class.
private getTargetClass ( Exception $exception ) : string | null
$exception Exception
return string | null
    private function getTargetClass(\Exception $exception)
    {
        foreach ($this->mapper as $source => $target) {
            if ($exception instanceof $source) {
                return $target;
            }
        }
        return null;
    }