Enum RecoverableFlowException
- java.lang.Object
-
- java.lang.Enum<RecoverableFlowException>
-
- io.github.juliengalet.reactorflow.exception.RecoverableFlowException
-
- All Implemented Interfaces:
Serializable,Comparable<RecoverableFlowException>
public enum RecoverableFlowException extends Enum<RecoverableFlowException>
Enum used to know if aRecoverableFlowor aRetryableFlowcan recover or retry.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLFUNCTIONALRetry or recover only onFlowFunctionalException.NONENever retry or recover.TECHNICALRetry or recover only onFlowTechnicalException.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RecoverableFlowExceptionvalueOf(String name)Returns the enum constant of this type with the specified name.static RecoverableFlowException[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final RecoverableFlowException ALL
-
TECHNICAL
public static final RecoverableFlowException TECHNICAL
Retry or recover only onFlowTechnicalException.
-
FUNCTIONAL
public static final RecoverableFlowException FUNCTIONAL
Retry or recover only onFlowFunctionalException.
-
NONE
public static final RecoverableFlowException NONE
Never retry or recover.
-
-
Method Detail
-
values
public static RecoverableFlowException[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RecoverableFlowException c : RecoverableFlowException.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RecoverableFlowException valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-