public static enum RoundJoinException.Reason extends Enum<RoundJoinException.Reason>
Round
.Enum Constant and Description |
---|
ALREADY_ENTERED
A failed join due to the player already being present in a
Round . |
FULL
A failed join due to the round being at capacity.
|
INTERNAL_ERROR
A failed join due to an internal error.
|
OFFLINE
A failed join due to the player being offline.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Returns the default message associated with this failure
RoundJoinException.Reason . |
static RoundJoinException.Reason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RoundJoinException.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoundJoinException.Reason ALREADY_ENTERED
Round
.public static final RoundJoinException.Reason FULL
public static final RoundJoinException.Reason INTERNAL_ERROR
public static final RoundJoinException.Reason OFFLINE
public static RoundJoinException.Reason[] values()
for (RoundJoinException.Reason c : RoundJoinException.Reason.values()) System.out.println(c);
public static RoundJoinException.Reason 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 nullpublic String getMessage()
RoundJoinException.Reason
.RoundJoinException.Reason
.