protected function _getMessage(Exception $exception)
    {
        $message = $this->getMessageForException($exception);

        $request = Router::getRequest();
        if ($request) {
            $message .= $this->_requestContext($request);
        }

        return $message;
    }
protected function _getMessage(Exception $exception)
    {
        $message = $this->getMessageForException($exception);

        $request = Router::getRequest();
        if ($request) {
            $message .= $this->_requestContext($request);
        }

        return $message;
    }
protected function _getMessage ( Exception $ exception ) { $ message = $ this -> getMessageForException ( $ exception ) ; $ request = Router :: getRequest ( ) ; if ( $ request ) { $ message .= $ this -> _requestContext ( $ request ) ; } return $ message ; }
Generates a formatted error message

@param \Exception $exception Exception instance
@return string Formatted message
Generates a formatted error message