public abstract class AbstractExceptionListener extends Object
logger
and the method onStageException(Exception, AbstractStage)
which is called on every raised
exception.Modifier and Type | Class and Description |
---|---|
static class |
AbstractExceptionListener.FurtherExecution |
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger
The default logger, which can be used by all subclasses
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractExceptionListener(boolean shouldLogExceptions) |
Modifier and Type | Method and Description |
---|---|
List<Exception> |
getLoggedExceptions() |
abstract AbstractExceptionListener.FurtherExecution |
onStageException(Exception exception,
AbstractStage throwingStage)
This method will be executed if an exception arises.
|
AbstractExceptionListener.FurtherExecution |
reportException(Exception e,
AbstractStage stage) |
protected final org.slf4j.Logger logger
protected AbstractExceptionListener(boolean shouldLogExceptions)
public abstract AbstractExceptionListener.FurtherExecution onStageException(Exception exception, AbstractStage throwingStage)
exception
- thrown exceptionthrowingStage
- the stage, which has thrown the exception.public AbstractExceptionListener.FurtherExecution reportException(Exception e, AbstractStage stage)
Copyright © 2015–2020. All rights reserved.