Re: Using middleware to catch custom exceptions in views

2012-06-11 Thread Rafael Durán Castañeda
El 10/06/12 22:25, Daniel Swarbrick escribió: I have a number of views that can raise a custom exception when something unexpected happens (in this particular case, when a back end server TCP socket connection fails). I'd like to use middleware to catch this exception, inject an error message i

Using middleware to catch custom exceptions in views

2012-06-10 Thread Daniel Swarbrick
I have a number of views that can raise a custom exception when something unexpected happens (in this particular case, when a back end server TCP socket connection fails). I'd like to use middleware to catch this exception, inject an error message into request, and then render the page as per n