> I have a controller plugin with a preDispatch() method. It calls two very
> basic methods and both of them can throw an exception. Right now they are
> both throwing an instance of Exception. The problem is that when one of them
> throws an exception it gets caught and added to the response object. When the
> other throws an exception it is not caught and triggers a fatal error. I
> really don't understand why one would be caught and the other isn't. Any
> ideas?
Maybe you need to be less specific in your catch statement.
Compare
try {} catch (\Exception $e) {}
with
try {} catch (\Zend_Auth_Exception $e) {}
But, without the code, it's hard to tell.
Andreas
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]