At 11:29 AM 11/9/99 -0800, Ray wrote:
>Does anyone know what method(s) to call that will return the name of the
>method
>that threw an exception? E.g.:
>
>try {
> ......... some code
>}
>catch (NullPointerException ex) {
> // It's here I want to know what method threw NullPointerException
CSpLog.send(this, CSpLog.ERROR, "YourMethodNameGoesHere, unexpected
Exception: "+ex);
//and / or
throw (new Exception("YourMethodNameGoesHere, unexpected Exception:
"+ex.getMessage()));
// -- Curt Springer, Team ND
>}
>
>_________________________________________________________________________
>
>For help in using, subscribing, and unsubscribing to the discussion
>forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>
>For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]