Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 85050 invoked from network); 15 Nov 2005 20:15:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Nov 2005 20:15:12 -0000 Received: (qmail 4354 invoked by uid 500); 15 Nov 2005 20:15:09 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 4296 invoked by uid 500); 15 Nov 2005 20:15:09 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 4281 invoked by uid 99); 15 Nov 2005 20:15:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2005 12:15:08 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [195.54.107.73] (HELO mxfep02.bredband.com) (195.54.107.73) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2005 12:15:00 -0800 Received: from [127.0.0.1] ([83.227.13.245] [83.227.13.245]) by mxfep02.bredband.com with ESMTP id <20051115201443.GRQE9142.mxfep02.bredband.com@[127.0.0.1]> for ; Tue, 15 Nov 2005 21:14:43 +0100 Message-ID: <437A41B9.9070109@mdh.se> Date: Tue, 15 Nov 2005 21:14:49 +0100 From: Fredrik Westermarck User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: Re: [lang] ExceptionUtils methods References: <4375D9CB.9040207@btopenworld.com> In-Reply-To: <4375D9CB.9040207@btopenworld.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Stephen Colebourne wrote: > Could I propose some new methods for ExceptionUtils: > > - ExceptionUtils.getLogMessageNoStackTrace(ex) > > - ExceptionUtils.getLogMessageShortStackTrace(ex, lines) I'm +1 on adding the methods. Regarding the names of the methods I agree with Gary in his last post, where he suggests ExceptionUtils.toMessage(ex) and ExceptionUtils.toMessage(ex, stackFrameCount). -- Regards, Fredrik Westermarck --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org