Class FlowFunctionalException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.github.juliengalet.reactorflow.exception.FlowException
-
- io.github.juliengalet.reactorflow.exception.FlowFunctionalException
-
- All Implemented Interfaces:
PrettyPrint,Serializable
public class FlowFunctionalException extends FlowException
Exception used to represent a functional exception (example: an error due something you can handle in a business rule). Those exceptions are typically the ones you will want to recover inRecoverableFlows. You can inherit this class to build custom functional exceptions if you want.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FlowFunctionalException(String message)FlowFunctionalException(Throwable cause, String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowExceptionTypegetType()Abstract method that should be implemented, in order to know theFlowExceptionType.-
Methods inherited from class io.github.juliengalet.reactorflow.exception.FlowException
flowConcerned, getFlowConcerned, isRecoverable, toPrettyString, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Method Detail
-
getType
public final FlowExceptionType getType()
Description copied from class:FlowExceptionAbstract method that should be implemented, in order to know theFlowExceptionType.- Specified by:
getTypein classFlowException- Returns:
- A
FlowExceptionType
-
-