Hi,
Did you try:

try
{
  ... do something...
}
catch(Exception e)
{
  Throwable cause = e.getCause();
  ... do whatever you want with the cause ...
}

By the way, as this is not a tomcat question, please either post
somewhere appropriate (comp.lang.java.help for example), or at least add
OFF-TOPIC to your subject.  Thanks,

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Nagpal, Vikas [mailto:vinagpal@;utmb.edu]
>Sent: Monday, October 21, 2002 12:12 PM
>To: '[EMAIL PROTECTED]'
>Subject: How to capture the ROOT cause of EXCEPTION
>
>Hello EveryBody,
>
>I have been trying to catch the ROOT cause of the exception. I am able
to
>get the NULL for the number which caused this exception but not the
NUMBER.
>Can anyone tell how to PRINT the NUMBER which caused the EXCEPTION. I
want
>to subsitute the NULL with the NUMBER.
>
>Thanks,
>With regards,
>Vikas nagpal.
>
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:tomcat-user-
>[EMAIL PROTECTED]>

This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to