public static enum NucleusException.ExceptionType extends Enum<NucleusException.ExceptionType>
Enum Constant and Description |
---|
DISALLOWED_NAME
The requested name is not allowed.
|
DOES_NOT_EXIST
The requested object does not exist.
|
EVENT_CANCELLED
An event was cancelled.
|
LIMIT_REACHED
A limit was reached, such as a home count limit.
|
UNKNOWN_ERROR
Unknown error.
|
Modifier and Type | Method and Description |
---|---|
static NucleusException.ExceptionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NucleusException.ExceptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NucleusException.ExceptionType DISALLOWED_NAME
public static final NucleusException.ExceptionType DOES_NOT_EXIST
public static final NucleusException.ExceptionType EVENT_CANCELLED
public static final NucleusException.ExceptionType LIMIT_REACHED
public static final NucleusException.ExceptionType UNKNOWN_ERROR
public static NucleusException.ExceptionType[] values()
for (NucleusException.ExceptionType c : NucleusException.ExceptionType.values()) System.out.println(c);
public static NucleusException.ExceptionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null