Enum Constant and Description |
---|
ALREADY_REGISTERED |
BAD_LOADER |
CLOSE_ERROR |
IN_CLASSPATH |
INIT_ERROR |
NOT_FOUND |
NOT_REGISTERED |
SUCCESS |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
msg
The message for this error code.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMsg()
Getter for the
msg field. |
static ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode SUCCESS
public static final ErrorCode NOT_FOUND
public static final ErrorCode IN_CLASSPATH
public static final ErrorCode ALREADY_REGISTERED
public static final ErrorCode INIT_ERROR
public static final ErrorCode NOT_REGISTERED
public static final ErrorCode CLOSE_ERROR
public static final ErrorCode BAD_LOADER
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getMsg()
msg
field.