protected function _method(Exception $exception)
    {
        $exception = $this->_unwrap($exception);
        list(, $baseClass) = namespaceSplit(get_class($exception));

        if (substr($baseClass, -9) === 'Exception') {
            $baseClass = substr($baseClass, 0, -9);
        }

        $method = Inflector::variable($baseClass) ?: 'error500';

        return $this->method = $method;
    }
protected function _method(Exception $exception)
    {
        $exception = $this->_unwrap($exception);
        list(, $baseClass) = namespaceSplit(get_class($exception));

        if (substr($baseClass, -9) === 'Exception') {
            $baseClass = substr($baseClass, 0, -9);
        }

        $method = Inflector::variable($baseClass) ?: 'error500';

        return $this->method = $method;
    }
protected function _method ( Exception $ exception ) { $ exception = $ this -> _unwrap ( $ exception ) ; list ( , $ baseClass ) = namespaceSplit ( get_class ( $ exception ) ) ; if ( substr ( $ baseClass , - 9 ) === 'Exception' ) { $ baseClass = substr ( $ baseClass , 0 , - 9 ) ; } $ method = Inflector :: variable ( $ baseClass ) ? : 'error500' ; return $ this -> method = $ method ; }
Get method name

@param \Exception $exception Exception instance.
@return string
Get method name