Interface ExceptionHandler
-
- All Superinterfaces:
Serializable
public interface ExceptionHandler extends Serializable
Interface to control the definition flow when defining new entities.- Since:
- 2.0.0
- Author:
- Rui Vilao (rui.vilao@feedzai.com)
-
-
Field Summary
Fields Modifier and Type Field Description static ExceptionHandlerDEFAULTDefault exception handler that doesn't stop the definition flow in any case.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanproceed(OperationFault op, Exception e)Decides if the flow must continue after a faulty operation take place.
-
-
-
Field Detail
-
DEFAULT
static final ExceptionHandler DEFAULT
Default exception handler that doesn't stop the definition flow in any case.
-
-
Method Detail
-
proceed
boolean proceed(OperationFault op, Exception e)
Decides if the flow must continue after a faulty operation take place.- Parameters:
op- The operation context that originated the exception.e- The exception generated during the operation.- Returns:
trueif the flow is to be continued ignoring this exception,falseotherwise.
-
-