David--

http://java.sun.com/j2se/1.5.0/docs/api/
embed what you need by creating your own Exception class with the custom method in that class?

Does this help?
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- From: "David kerber" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[email protected]>
Sent: Friday, May 18, 2007 3:01 PM
Subject: Re: Error trapping


So how do I use that getMethodName code? Can I make a utility routine that I can call from my catch block, and call it with the Exception object (so I can put the function call inline with the error report string), or do I have to embed the 3 functional lines of code into my catch block?

D

Nelson, Tracy M. wrote:
I actually have a note about this exact thing.  Check here:
http://randomcoolzip.blogspot.com/2006/02/hack-of-day.html

| -----Original Message-----
| From: David kerber [mailto:[EMAIL PROTECTED]
| Sent: Friday, 18 May, 2007 12:47
| To: [email protected]
| Subject: Error trapping
| | In my plain .java files, is there a way of programmatically grabbing
| what method is executing?  I already grab the class for logging in the
| catch block, but can I find the method without going through too many
| gyrations? Currently, I just hard-code the method name in the text that
| I log along with the error message.
| | D
| | | | ---------------------------------------------------------------------
| To start a new topic, e-mail: [email protected]
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]

-----------------------------------------
------------------------------------------------------------
The information contained in this message is confidential
proprietary property of Nelnet, Inc. and its affiliated companies (Nelnet) and is intended for the recipient only.
Any reproduction, forwarding, or copying without the express
permission of Nelnet is strictly prohibited. If you have
received this communication in error, please notify us
immediately by replying to this e-mail.
------------------------------------------------------------

---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to