Contao\CoreBundle\EventListener\ExceptionConverterListener::getTargetClass PHP 메소드

getTargetClass() 개인적인 메소드

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