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 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:
        true if the flow is to be continued ignoring this exception, false otherwise.