public static enum InternalMessage.Status extends Enum<InternalMessage.Status>
| Enum Constant and Description |
|---|
ERROR_HANDLER_EXCEPTION
Response status signifying an exception handling the message.
|
ERROR_NO_HANDLER
Response status signifying no registered handler.
|
OK
All ok.
|
PROTOCOL_EXCEPTION
Response status signifying invalid message structure.
|
| Modifier and Type | Method and Description |
|---|---|
static InternalMessage.Status |
forId(int id)
Returns the status enum associated with the given ID.
|
int |
id()
Returns the unique status ID.
|
static InternalMessage.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InternalMessage.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InternalMessage.Status OK
public static final InternalMessage.Status ERROR_NO_HANDLER
public static final InternalMessage.Status ERROR_HANDLER_EXCEPTION
public static final InternalMessage.Status PROTOCOL_EXCEPTION
public static InternalMessage.Status[] values()
for (InternalMessage.Status c : InternalMessage.Status.values()) System.out.println(c);
public static InternalMessage.Status 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 int id()
public static InternalMessage.Status forId(int id)
id - the status ID.