Enum Class ErrorMessages
- All Implemented Interfaces:
Serializable
,Comparable<ErrorMessages>
,Constable
Enum representing various error messages used in the application.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that community is null.Indicates that a connection cannot be established.Indicates that the agent cannot be launched.Indicates a general failure.Indicates that group is null.Indicates that the agent must be launched.Indicates that role is null. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
Returns the name of the error message followed by a space.static ErrorMessages
Returns the enum constant of this class with the specified name.static ErrorMessages[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAILED
Indicates a general failure. -
C_NULL
Indicates that community is null. -
G_NULL
Indicates that group is null. -
R_NULL
Indicates that role is null. -
CANT_LAUNCH
Indicates that the agent cannot be launched. -
CANT_CONNECT
Indicates that a connection cannot be established. -
MUST_BE_LAUNCHED
Indicates that the agent must be launched.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
Returns the name of the error message followed by a space.- Overrides:
toString
in classEnum<ErrorMessages>
- Returns:
- the name of the error message followed by a space
-