[Zope3-dev] Better exception display

holger krekel pyth@devel.trillke.net
Tue, 21 Jan 2003 19:27:11 +0100


Jim Fulton wrote:
> 
> Here's a fun little project for someone. :)
> 
> We want to display errors nicely, but we may not know how to do so.
> 
> In Zope 2, we have this rool that if the str of an exception contains
> HTML markup, then it must be meant for a human. This is not so good. :)
> 
> The zope 3 way to do this is to define views for exception objects.
> This way, we can configure the system to handle different kinds of errors
> in a way that is appropriate to the error type and to the presentation type.
> 
> When an error percolates up to the publication machinery, the machinery
> simply looks up a view for the error and displays that.

The problem i have with Zope2 is more that the actual error 
information (no matter how it is presented) doesn't make it 
easy to locate the problem.  Sometimes it's obvious but
often it is not (especially during development). 

just my 2ec,

    holger