[jboss-jira] [JBoss JIRA] Updated: (LOGTOOL-21) Add mechanism to pass parameters to exception constructors
David Lloyd (JIRA)
jira-events at lists.jboss.org
Thu Sep 8 14:22:30 EDT 2011
[ https://issues.jboss.org/browse/LOGTOOL-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Lloyd updated LOGTOOL-21:
-------------------------------
Fix Version/s: 1.0.0.Beta9
(was: 1.0.0.Beta8)
> 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.Beta9
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list