Re: [fw-general] exceptions thrown in controller plugin are not always caught

2012-03-01 Thread Mark Wright
I'm not actually catching anything. I am leaving that to the front controller. It is the exception in _validateAcceptHeader() that is not being caught while the exception in _validateHasId() is caught. Strangely, if I move the exception in _validateHasId() to any other place in that method, for

Re: [fw-general] exceptions thrown in controller plugin are not always caught

2012-03-01 Thread Andreas Möller
> 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 ob

[fw-general] exceptions thrown in controller plugin are not always caught

2012-03-01 Thread Mark Wright
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. Wh