Do this:
public function errorAction()
{
$this->view->message =
$this->_request->getParam('error_handler')->exception->getMessage();
}
Robert Castley wrote:
Hi (again!),
In my controller I throw an Exception. Using the ErrorController
guide in the manual I would like
to be able to display the message I put in my exception. I can't seem
to get this message out as
it is protected.
throw new Zend_Exception('Group not found!',90);
________________________________________________________________________
This email has been scanned for all known viruses by the MessageLabs
Email Security Service and the Macro 4 plc internal virus protection
system.
________________________________________________________________________
--
Jack