Re: [lang] ExceptionUtils methods

2005-11-16 Thread Stephen Colebourne
complicated API name. Gary -Original Message- From: Stephen Colebourne [mailto:[EMAIL PROTECTED] Sent: Saturday, November 12, 2005 4:02 AM To: Jakarta Commons Developers List Subject: [lang] ExceptionUtils methods Could I propose some new methods for ExceptionUtils

Re: [lang] ExceptionUtils methods

2005-11-15 Thread Fredrik Westermarck
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

Re: [lang] ExceptionUtils methods

2005-11-15 Thread Steven Caswell
. Gary -Original Message- From: Stephen Colebourne [mailto:[EMAIL PROTECTED] Sent: Saturday, November 12, 2005 4:02 AM To: Jakarta Commons Developers List Subject: [lang] ExceptionUtils methods Could I propose some new methods for ExceptionUtils

RE: [lang] ExceptionUtils methods

2005-11-15 Thread Gary Gregory
a more complicated API name. Gary -Original Message- From: Stephen Colebourne [mailto:[EMAIL PROTECTED] Sent: Saturday, November 12, 2005 4:02 AM To: Jakarta Commons Developers List Subject: [lang] ExceptionUtils methods Could I propose some new methods

Re: [lang] ExceptionUtils methods

2005-11-13 Thread Steven Caswell
Sounds like a good idea to me. I would probably choose to not put Log in the method names, i.e. getMessageNoStack trace and getMessageShortStackTrace, since the methods don't specifically deal with logging and there is no requirement to use the results in a log mesage. But I don;t have a strong

RE: [lang] ExceptionUtils methods

2005-11-13 Thread Gary Gregory
] ExceptionUtils methods Sounds like a good idea to me. I would probably choose to not put Log in the method names, i.e. getMessageNoStack trace and getMessageShortStackTrace, since the methods don't specifically deal with logging and there is no requirement to use the results in a log mesage. But I

RE: [lang] ExceptionUtils methods

2005-11-13 Thread Gary Gregory
, November 12, 2005 4:02 AM To: Jakarta Commons Developers List Subject: [lang] ExceptionUtils methods Could I propose some new methods for ExceptionUtils: - ExceptionUtils.getLogMessageNoStackTrace(ex) Returns a string of the form: IllegalArgumentException: Person must have a surname

[lang] ExceptionUtils methods

2005-11-12 Thread Stephen Colebourne
Could I propose some new methods for ExceptionUtils: - ExceptionUtils.getLogMessageNoStackTrace(ex) Returns a string of the form: IllegalArgumentException: Person must have a surname ClassNameNoPackage: Message - ExceptionUtils.getLogMessageShortStackTrace(ex, lines) Returns the same as above