public class LogErrorExceptionHandler extends Object implements ExceptionHandler
| Constructor and Description |
|---|
LogErrorExceptionHandler()
Constructor.
|
LogErrorExceptionHandler(org.slf4j.Logger logger)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleException(Throwable throwable,
Event<?> event)
Handles the specified exception that occurred when the specified event was either being dispatched or processed
by an event handler.
|
public LogErrorExceptionHandler()
A logger dedicated to this class will be used.
public LogErrorExceptionHandler(org.slf4j.Logger logger)
If no logger is given, a logger dedicated to this class will be used.
logger - Logger to be used to log to be exception.public void handleException(Throwable throwable, Event<?> event)
ExceptionHandlerhandleException in interface ExceptionHandlerthrowable - Exception to be handled.event - Event for which the exception was thrown.ExceptionHandler.handleException(Throwable, Event)Copyright © 2017. All rights reserved.