[jboss-jira] [JBoss JIRA] (LOGTOOL-21) Add mechanism to pass parameters to exception constructors

James Perkins (Updated) (JIRA) jira-events at lists.jboss.org
Wed Oct 19 18:33:45 EDT 2011


     [ https://issues.jboss.org/browse/LOGTOOL-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Perkins updated LOGTOOL-21:
---------------------------------

    Fix Version/s: 1.0.0.CR3
                       (was: 1.0.0.CR1)

    
> Add mechanism to pass parameters to exception constructors
> ----------------------------------------------------------
>
>                 Key: LOGTOOL-21
>                 URL: https://issues.jboss.org/browse/LOGTOOL-21
>             Project: Log Tool
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>            Reporter: David Lloyd
>            Assignee: James Perkins
>             Fix For: 1.0.0.CR3
>
>
> We need a parameter annotation which allows log methods to pass additional parameters to the constructor of exceptions.  Something like {{@Param}}.  It would exclude that parameter from the list and instead apply those values to non-cause, non-message parameters of the constructor.
> For the purposes of resolution, assume the message parameter is the left-most String and the cause parameter is the left-most Throwable or subtype thereof.
> Parameters should be order-matched first, then type-matched to resolve ambiguity, throwing an exception if there is no unambiguous solution.  The {{@Param}} annotation should allow an optional class name to be specified which would have to match the exact type of the parameter in question, to enable unambiguous resolution in this case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list