Hi Adile,

I did say it was untested, and I've spotted a problem in my code already 
(why are bugs so invisible BEFORE you press the send button??!!)

On 22 Jul 2005 at 9:41, Rob Hills wrote:

> Something like the following (untested) in your error.jsp should do the trick:
> 
> <%
>   if (exception == null) {
> %>
>     <H1>A null exception was encountered</H1>
> <%
>   } else {
>     if (exception instanceof SQLException) {
>       Exception e = exception;  // WRONG

        the line above should read:
          SQLException e = (SQLException)exception;

>       while (e != null) {
> %>
>         <P>Error Code: <%=e.getErrorCode()%></P>
>         <P>Message: <%=e.getMessage()%></P>
> <%
>         e = e.getNextException();
>       }
>     } else {
>       // non-sql error handling here...
>     }
>   }
> 
> HTH,
> 
> Rob Hills
> www.netpaver.com.au
> Western Australia
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Rob Hills
MBBS, Grad Dip Com Stud, MACS
Senior Consultant
Netpaver Web Solutions
Tel:    (08) 9485 2555
Mob:    (0412) 904 357
Fax:    (08) 9485 2555



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to