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:
Serializable
,Comparable<ErrorInformation.ErrorAction>
- Enclosing interface:
ErrorInformation
The set of actions that the system can perform
when an error is detected
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTells the RunLevelController to halt progress in the level and proceed to the next lowest level and stop the proceeding at that level.Tells the RunLevelController to disregard the error and continue its progress as if the error never happened. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorInformation.ErrorAction
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 Details
-
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
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
-
-
Constructor Details
-
ErrorAction
private ErrorAction()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-