[jboss-jira] [JBoss JIRA] Created: (LOGTOOL-21) Add mechanism to pass parameters to exception constructors
David Lloyd (JIRA)
jira-events at lists.jboss.org
Tue Jun 14 00:13:23 EDT 2011
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.Beta8
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