tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: Error trapping
Date Fri, 18 May 2007 19:15:42 GMT
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" <dckerber@verizon.net>
To: "Tomcat Users List" <users@tomcat.apache.org>
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: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
>
> 


---------------------------------------------------------------------
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