On 10/11/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
>
> I think you're completely right about making the exception handler
> into a plain old view; the signature (request, exception) seems right,
> but I haven't thought it through completely yet.
I'd imagine that (request, exc_class,
On 10/10/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
> The final result would be that the exception clauses in Django would
> be a method, reducing the exception clause in the base handler to
> calling that method.
[...]
> I think this keeps the exception handling semantics the same, but
>
I don't know a whole lot about exception handling in middleware yet,
but I like the idea of making it easier to inject more functionality
into the default handler. For instance, I like the postmortem for
template loader errors, but I've also wished I could include something
like that for my own
I have a use case in which I need an exception middleware to do
something custom, but would just like to annotate the response
provided by Django's normal request exception handling.
I see the exception handling code is fairly intricate, but I'm
thinking about working up a patch that would