Sebastian:

I've spent a bit of time working on this issue - I've gone with basically a
"both" approach, plus a bit. That is to say, I report the error to the user,
in english if possible. Internally, every error has a number, which refers
to a bookmark that the user can go to in order to read a detailed
description of what went wrong & what to do about it. I also log all
exceptions to a color-coded HTML log on the serve side, and for more severe
errors I send an email to a aystem administrator (e.g. the "something broke"
type of error, not just the "user did something they shouldn't" type of
error).

For an example, try our demo of Expresso at http://www.javacorporate.com and
try to add a new Event record (or any other administrative thing) without
logging in. You'll get an example of our error form, where you can click on
the error message & see the HTML explanation.

Just one way of doing it, but it's worked pretty well for us so far.

Mike
Javacorporate Ltd

> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's
> Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Sebastien Sahuc
> Sent: Thursday, August 26, 1999 10:58 AM
> To: [EMAIL PROTECTED]
> Subject: Exception and Error handling in Servlet... methodologies ?
>
>
> Hi there,
>
> As developement of a servlet Aplication grows in our R&D department,
> the mechanism of Error & Exception Handling isn't fine because we're
> still wondering what suit best with Servlet philosophy : error
> reported in HTML to client browser ? Or logged in local file ?
>
> Is there any article on this subject ?
>
> Thank a lot for any reply you should provide.
>
> Sebastien
> [EMAIL PROTECTED]
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to