codeguy/Slim — Issue #226: Pass exceptions in middleware up the stack
Author: dannykopping
Created: 2012-01-18 21:18:01+00:00
State: open

Hey Josh

I have a similar problem to one I've reported before.
The `PrettyExceptions` middleware class will intercept exceptions occasionally (but in a repeatable way) and render out a pretty page which gives me all the error details.

I think this should not happen if a custom `error()` callable has been defined.
I'm experimenting with ways of sending the exception back up the stack, but the problem is that the middleware instances are only aware of the middleware OR Slim application instance that invoked them; if we don't have an objective reference to the invoking application then it becomes hairy.

I hope this is all making sense.
Thanks