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]

Reply via email to