Enum Class RejectReason
- All Implemented Interfaces:
Serializable, Comparable<RejectReason>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRejected without indications.The CLaJ implementation of the room host is not the same as the provided one.The provided password is invalid.A password is required to join the room.Room full.No room with this id, or id is-1(which is an invalid id).The server is closingThe server is reporting as full. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic RejectReasonReturns the enum constant of this class with the specified name.static RejectReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
error
Rejected without indications. -
serverFull
The server is reporting as full. -
serverClosing
The server is closing -
roomNotFound
No room with this id, or id is-1(which is an invalid id). -
roomFull
Room full. -
passwordRequired
A password is required to join the room. -
invalidPassword
The provided password is invalid. -
incompatible
The CLaJ implementation of the room host is not the same as the provided one.
-
-
Field Details
-
all
-
-
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
-