Issue Details (XML | Word | Printable)

Key: CHAIN-25
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Joe Germuska
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Chain

[chain] Should DispatchCommand unwrap InvocationTargetException?

Created: 12/Apr/05 01:08 AM   Updated: 02/Jan/08 07:01 AM
Return to search
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.1

Time Tracking:
Not Specified

Environment:
Operating System: other
Platform: Other

Bugzilla Id: 34402


 Description  « Hide
Since Command can throw exception, would it be more correct for DispatchCommand
to extract the source exception when the dispatch operation throws an
InvocationTargetException?

This comes into play, for example, when you want to use a DispatchCommand in
Struts while using declarative exception handling. Obviously one can't do much
to declare handling for something like InvocationTargetException, but in the
case where I want to throw a business exception instead of routing to a view
page, I can't do that from a DispatchCommand because the business exception is
always wrapped in InvocationTargetException.

If I don't get any feedback in the next few days, I'll probably make this change.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.