public class LoggingExceptionHandler<T extends EventListener> extends Object implements ExceptionHandler<T>
RETHROW_EXCEPTION_HANDLER| Constructor and Description |
|---|
LoggingExceptionHandler(org.slf4j.Logger log) |
LoggingExceptionHandler(org.slf4j.Logger log,
boolean notifyOtherListeners) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleException(T listener,
Throwable t)
Handle an exception that occurred in an event listener.
|
boolean |
isNotifyOtherListeners() |
static <T extends EventListener> |
newInstance(org.slf4j.Logger log) |
void |
setNotifyOtherListeners(boolean notifyOtherListeners) |
public LoggingExceptionHandler(org.slf4j.Logger log)
public LoggingExceptionHandler(org.slf4j.Logger log,
boolean notifyOtherListeners)
public boolean isNotifyOtherListeners()
public void setNotifyOtherListeners(boolean notifyOtherListeners)
public static <T extends EventListener> LoggingExceptionHandler<T> newInstance(org.slf4j.Logger log)
public boolean handleException(T listener, Throwable t) throws Throwable
ExceptionHandlerhandleException in interface ExceptionHandler<T extends EventListener>listener - The listener that throw the exception.t - The thrown exception.true, if the remaining listeners should be notified,
false to cancel.Throwable - Rethrowing or converting exceptions.