Details
-
Type:
Feature Request
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 3.0.0.Beta1
-
Component/s: Core
-
Labels:None
-
Affects:Documentation (Ref Guide, User Guide, etc.)
-
Estimated Difficulty:Low
Description
As an alternative to allowing a handler to rethrow the original exception, Catch should allow a handler to specify a different exception to throw. This may be a more informative exception, yet should still be rethrown outside of Catch.
Gliffy Diagrams
Activity
- All
- Comments
- Work Log
- History
- Activity
- Links Hierarchy
The API I propose for this is:
CaughtException#rethrow(Throwable t)
This says "rethrow the exception, but use this one in place of the original"