[fw-general] Getting my own exceptions to display in the error controller

2008-07-08 Thread Robert Castley
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);

Re: [fw-general] Getting my own exceptions to display in the error controller

2008-07-08 Thread Jack Sleight
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