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
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
.
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
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
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
] 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
, 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
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