Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 57969 invoked from network); 18 May 2007 19:16:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 May 2007 19:16:35 -0000 Received: (qmail 37017 invoked by uid 500); 18 May 2007 19:16:29 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 37004 invoked by uid 500); 18 May 2007 19:16:29 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 36989 invoked by uid 99); 18 May 2007 19:16:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2007 12:16:29 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=MSGID_FROM_MTA_HEADER,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mgainty@hotmail.com designates 65.54.246.78 as permitted sender) Received: from [65.54.246.78] (HELO bay0-omc1-s6.bay0.hotmail.com) (65.54.246.78) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2007 12:16:22 -0700 Received: from hotmail.com ([65.55.138.27]) by bay0-omc1-s6.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Fri, 18 May 2007 12:16:01 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 18 May 2007 12:16:01 -0700 Message-ID: Received: from 24.63.77.77 by BAY133-DAV17.phx.gbl with DAV; Fri, 18 May 2007 19:15:56 +0000 X-Originating-IP: [24.63.77.77] X-Originating-Email: [mgainty@hotmail.com] X-Sender: mgainty@hotmail.com Reply-To: "Martin Gainty" From: "Martin Gainty" To: "Tomcat Users List" References: <07CD8D709FA44646907645F880C50EE217868D21@lin-email-01.nelnet.net> <464DF814.40902@verizon.net> Subject: Re: Error trapping Date: Fri, 18 May 2007 15:15:42 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-OriginalArrivalTime: 18 May 2007 19:16:01.0643 (UTC) FILETIME=[F90A8BB0:01C79980] X-Virus-Checked: Checked by ClamAV on apache.org 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" To: "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 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