commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Hodges (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1369) Formatted and Paramaterized Exception Classes
Date Sat, 16 Mar 2019 15:15:00 GMT

    [ https://issues.apache.org/jira/browse/LANG-1369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16794287#comment-16794287
] 

Philip Hodges commented on LANG-1369:
-------------------------------------

Throws ReflectiveOperationException is less lame than the four subclasses laundry list.

> Formatted and Paramaterized Exception Classes
> ---------------------------------------------
>
>                 Key: LANG-1369
>                 URL: https://issues.apache.org/jira/browse/LANG-1369
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.exception.*
>    Affects Versions: 3.7
>            Reporter: David Mollitor
>            Priority: Major
>         Attachments: LANG-1369.1.patch
>
>
> Add two new Exception classes:
> # FormattedException
> # ParameterizedException
> Both classes provide different mechanisms for creating error messages instead of using
straight string concatenation that can look sloppy and introduces a lot of {{StringBuilder}}
instances into the underlying byte code.  FormattedException uses Java's {{java.lang.String#format}}
method for producing the Exception's detailed message.  ParameterizedException uses Log4j's
implementation of the SLF4J parameterization implementation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message