RE: Change the default error message

2002-01-14 Thread Héctor Garcia Peris
At 08:08 11/01/02 -0600, you wrote: >Oh the dangers of modifying code without first testing it! > >I modified that from a plain 'Exception', because I thought I was being >clever. Catch either the exact specific Exceptions that may be thrown (eg: >NullPointer, IO) or just catch 'Exception', as I w

RE: Change the default error message

2002-01-11 Thread Mike Curwen
oing. -Original Message- From: Héctor Garcia Peris [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 7:25 AM To: Tomcat Users List Subject: RE: Change the default error message At 07:16 11/01/02 -0600, you wrote: >You could use a JSP error page from a servlet. > >Catch any Se

RE: Change the default error message

2002-01-11 Thread Héctor Garcia Peris
At 07:16 11/01/02 -0600, you wrote: >You could use a JSP error page from a servlet. > >Catch any ServletException errors, and do a redirect to your JSP error page. > >Here's short snips from one of my servlets: >try { > //sending email from the servlet... >} catch (ServletException ex) { >lo

RE: Change the default error message

2002-01-11 Thread Mike Curwen
You could use a JSP error page from a servlet. Catch any ServletException errors, and do a redirect to your JSP error page. Here's short snips from one of my servlets: try { //sending email from the servlet... } catch (ServletException ex) { log("Failure to send email", ex); sendErrorRed