Manager/ExceptionManager.php
protected function getConfigException($exceptionName)
    {
        $exceptionParentName = get_parent_class($exceptionName);

        if (in_array(
            'M6Web\Bundle\ApiExceptionBundle\Exception\Interfaces\ExceptionInterface',
            class_implements($exceptionParentName)
        )) {
            $parentConfig = $this->getConfigException($exceptionParentName);
        } else {
            $parentConfig = $this->defaultConfig;
        }

        if (isset($this->exceptions[$exceptionName])) {
            return array_merge($parentConfig, $this->exceptions[$exceptionName]);
        }

        return $parentConfig;
    }
protected function getConfigException($exceptionName)
    {
        $exceptionParentName = get_parent_class($exceptionName);

        if (in_array(
            'M6Web\Bundle\ApiExceptionBundle\Exception\Interfaces\ExceptionInterface',
            class_implements($exceptionParentName)
        )) {
            $parentConfig = $this->getConfigException($exceptionParentName);
        } else {
            $parentConfig = $this->defaultConfig;
        }

        if (isset($this->exceptions[$exceptionName])) {
            return array_merge($parentConfig, $this->exceptions[$exceptionName]);
        }

        return $parentConfig;
    }
protected function getConfigException ( $ exceptionName ) { $ exceptionParentName = get_parent_class ( $ exceptionName ) ; if ( in_array ( 'M6Web\Bundle\ApiExceptionBundle\Exception\Interfaces\ExceptionInterface' , class_implements ( $ exceptionParentName ) ) ) { $ parentConfig = $ this -> getConfigException ( $ exceptionParentName ) ; } else { $ parentConfig = $ this -> defaultConfig ; } if ( isset ( $ this -> exceptions [ $ exceptionName ] ) ) { return array_merge ( $ parentConfig , $ this -> exceptions [ $ exceptionName ] ) ; } return $ parentConfig ; }
Get config to exception

@param string $exceptionName

@return array
Get config to exception