RE: Error trapping

2007-05-18 Thread Nelson, Tracy M.
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

Re: Error trapping

2007-05-18 Thread Martin Gainty
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

Re: Error trapping

2007-05-18 Thread David kerber
: 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

RE: Error trapping

2007-05-18 Thread Nelson, Tracy M.
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

Re: Error trapping

2007-05-18 Thread David kerber
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

Re: Error trapping

2007-05-18 Thread Joe Riopel
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

Error trapping

2007-05-18 Thread David kerber
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