Package org.glassfish.hk2.runlevel
Enum ErrorInformation.ErrorAction
- java.lang.Object
-
- java.lang.Enum<ErrorInformation.ErrorAction>
-
- org.glassfish.hk2.runlevel.ErrorInformation.ErrorAction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ErrorInformation.ErrorAction>
- Enclosing interface:
- ErrorInformation
public static enum ErrorInformation.ErrorAction extends java.lang.Enum<ErrorInformation.ErrorAction>
The set of actions that the system can perform when an error is detected
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GO_TO_NEXT_LOWER_LEVEL_AND_STOP
Tells the RunLevelController to halt progress in the level and proceed to the next lowest level and stop the proceeding at that level.IGNORE
Tells the RunLevelController to disregard the error and continue its progress as if the error never happened.
-
Constructor Summary
Constructors Modifier Constructor Description private
ErrorAction()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorInformation.ErrorAction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ErrorInformation.ErrorAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GO_TO_NEXT_LOWER_LEVEL_AND_STOP
public static final ErrorInformation.ErrorAction GO_TO_NEXT_LOWER_LEVEL_AND_STOP
Tells the RunLevelController to halt progress in the level and proceed to the next lowest level and stop the proceeding at that level. This is the default action when an error is encountered while the system is proceeding upward. The error (or errors) will be thrown by theRunLevelFuture
-
IGNORE
public static final ErrorInformation.ErrorAction IGNORE
Tells the RunLevelController to disregard the error and continue its progress as if the error never happened. This is the default action when an error is encountered while the system is proceeding downward. The error (or errors) will NOT be thrown by theRunLevelFuture
-
-
Method Detail
-
values
public static ErrorInformation.ErrorAction[] 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 (ErrorInformation.ErrorAction c : ErrorInformation.ErrorAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorInformation.ErrorAction valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-