Package org.jboss.weld.event
Interface ObserverNotifier.ObserverExceptionHandler
-
- Enclosing class:
- ObserverNotifier
protected static interface ObserverNotifier.ObserverExceptionHandler
There are two different strategies of exception handling for observer methods. When an exception is raised by a synchronous or transactional observer for a synchronous event, this exception stops the notification chain and the exception is propagated immediately. On the other hand, an exception thrown during asynchronous event delivery never is never propagated directly. Instead, all the exceptions for a given asynchronous event are collected and then made available together using CompletionException.- Author:
- Jozef Hartinger
-
-
Field Summary
Fields Modifier and Type Field Description static ObserverNotifier.ObserverExceptionHandler
IMMEDIATE_HANDLER
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default List<Throwable>
getHandledExceptions()
void
handle(Throwable throwable)
-
-
-
Field Detail
-
IMMEDIATE_HANDLER
static final ObserverNotifier.ObserverExceptionHandler IMMEDIATE_HANDLER
-
-