[Seaside] Handling Errors

Avi Bryant avi at beta4.com
Thu Apr 24 14:55:35 CEST 2003


On Thu, 24 Apr 2003, Nevin Pratt wrote:

> Avi,
>
> I'm guessing that you often subclass WASession in your applications, and
> that you override #handleError: to not allow the user to 'Debug' the
> application?

Yes, the intention is that everyone will override #handleError: to do
whatever is appropiate in their environment - dump a snapshot, log a
stacktrace, page the sysadmin, etc, and show whatever kind of error page
they want to show to the user.  Since I have no idea what people will want
for deployment, it seems reasonable to just have it default to what makes
sense during development.

> Seems onerous to ever give the end user a 'Debug' option with stack
> walkback in their browser.  That should be for development only.

Sure.  I guess I could add a preference to Session that disabled the full
walkback and just showed a simple "There has been an internal error"
message.  But I doubt anyone would ever use the default version of that
message anyway...

Avi



More information about the Seaside mailing list