deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivo Maixner (Created) (JIRA)" <>
Subject [jira] [Created] (DELTASPIKE-165) Exception handlers: support handling unexpected exceptions
Date Tue, 17 Apr 2012 07:42:33 GMT
Exception handlers: support handling unexpected exceptions

                 Key: DELTASPIKE-165
             Project: DeltaSpike
          Issue Type: Improvement
          Components: ExceptionControl-Module
            Reporter: Ivo Maixner
            Assignee: Gerhard Petracek

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()) {
  log.error("Unexpected exception", event.getException());
  messages.error(new BundleKey(MESSAGE_BUNDLE, "unexpected.exception"));
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
- a third traversal type - after BREADTH_FIRST and DEPTH_FIRST


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message