2
| To: Tomcat Users List
| 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 e
o: "Tomcat Users List"
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 erro
: 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
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: users@tomcat.apache.org
| Subject: Error trapping
|
| In my
Joe Riopel wrote:
Can't you grab that from the stack trace?
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/StackTraceElement.html
Looks like a possibility; I'll have to look into it. Thanks for the
suggestion.
D
-
To st
Can't you grab that from the stack trace?
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/StackTraceElement.html
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
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