Enum FailureHandler.Outcome
- java.lang.Object
- java.lang.Enum<FailureHandler.Outcome>
- org.springframework.boot.devtools.restart.FailureHandler.Outcome
- All Implemented Interfaces:
Serializable
,Comparable<FailureHandler.Outcome>
- Enclosing interface:
- FailureHandler
public static enum FailureHandler.Outcome extends Enum<FailureHandler.Outcome>
Various outcomes for the handler.
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FailureHandler.Outcome
valueOf(String name)
Returns the enum constant of this type with the specified name.static FailureHandler.Outcome[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
ABORT
public static final FailureHandler.Outcome ABORT
Abort the relaunch.
RETRY
public static final FailureHandler.Outcome RETRY
Try again to relaunch the application.
Method Detail
values
public static FailureHandler.Outcome[] 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 (FailureHandler.Outcome c : FailureHandler.Outcome.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static FailureHandler.Outcome 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