public static enum HomeException.Reasons extends java.lang.Enum<HomeException.Reasons>
Enum Constant and Description |
---|
DOES_NOT_EXIST
The home point does not exists
|
INVALID_LOCATION
The home exists, but the location is not valid.
|
INVALID_NAME
The home name is invalid
|
LIMIT_REACHED
The maximum number of permitted homes has already
been allocated.
|
PLUGIN_CANCELLED
A plugin cancelled the event.
|
UNKNOWN
An unknown error occurred.
|
Modifier and Type | Method and Description |
---|---|
static HomeException.Reasons |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HomeException.Reasons[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HomeException.Reasons DOES_NOT_EXIST
public static final HomeException.Reasons INVALID_NAME
public static final HomeException.Reasons INVALID_LOCATION
public static final HomeException.Reasons LIMIT_REACHED
public static final HomeException.Reasons PLUGIN_CANCELLED
public static final HomeException.Reasons UNKNOWN
public static HomeException.Reasons[] values()
for (HomeException.Reasons c : HomeException.Reasons.values()) System.out.println(c);
public static HomeException.Reasons 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 null