Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
None
-
None
Description
Provide a way to handle exceptions not handled by any other handler.
Currently, a handler like this:
public void unexpectedException(@Handles CaughtException<Throwable> event) {
if (!event.isMarkedHandled())
}
gets in the way when there are other handlers which respond to non-root-cause exceptions.
Some ideas:
- an UnhandledException event fired as a last chance to handle it before re-throwing it as unhandled
- a third traversal type - after BREADTH_FIRST and DEPTH_FIRST