tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David kerber <dcker...@verizon.net>
Subject Re: Error trapping
Date Fri, 18 May 2007 19:01:40 GMT
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:dckerber@verizon.net]
> | Sent: Friday, 18 May, 2007 12:47
> | To: users@tomcat.apache.org
> | 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: users@tomcat.apache.org
> | To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> | For additional commands, e-mail: users-help@tomcat.apache.org
>
> -----------------------------------------
> ------------------------------------------------------------
> 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: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>   



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message