public static enum Error.Code extends java.lang.Enum<Error.Code> implements com.google.protobuf.ProtocolMessageEnum
The selection of possible error codes.Protobuf enum
nakama.realtime.Error.Code
Enum Constant and Description |
---|
BAD_INPUT
Fields in the message have an invalid format.
|
MATCH_JOIN_REJECTED
The match join was rejected.
|
MATCH_NOT_FOUND
The match id was not found.
|
MISSING_PAYLOAD
A message was expected but contains no content.
|
RUNTIME_EXCEPTION
An unexpected result from the server.
|
RUNTIME_FUNCTION_EXCEPTION
The runtime function executed with an error.
|
RUNTIME_FUNCTION_NOT_FOUND
The runtime function does not exist on the server.
|
UNRECOGNIZED |
UNRECOGNIZED_PAYLOAD
The server received a message which is not recognised.
|
Modifier and Type | Field and Description |
---|---|
static int |
BAD_INPUT_VALUE
Fields in the message have an invalid format.
|
static int |
MATCH_JOIN_REJECTED_VALUE
The match join was rejected.
|
static int |
MATCH_NOT_FOUND_VALUE
The match id was not found.
|
static int |
MISSING_PAYLOAD_VALUE
A message was expected but contains no content.
|
static int |
RUNTIME_EXCEPTION_VALUE
An unexpected result from the server.
|
static int |
RUNTIME_FUNCTION_EXCEPTION_VALUE
The runtime function executed with an error.
|
static int |
RUNTIME_FUNCTION_NOT_FOUND_VALUE
The runtime function does not exist on the server.
|
static int |
UNRECOGNIZED_PAYLOAD_VALUE
The server received a message which is not recognised.
|
Modifier and Type | Method and Description |
---|---|
static Error.Code |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Error.Code> |
internalGetValueMap() |
static Error.Code |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Error.Code |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Error.Code |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Error.Code[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Error.Code RUNTIME_EXCEPTION
An unexpected result from the server.
RUNTIME_EXCEPTION = 0;
public static final Error.Code UNRECOGNIZED_PAYLOAD
The server received a message which is not recognised.
UNRECOGNIZED_PAYLOAD = 1;
public static final Error.Code MISSING_PAYLOAD
A message was expected but contains no content.
MISSING_PAYLOAD = 2;
public static final Error.Code BAD_INPUT
Fields in the message have an invalid format.
BAD_INPUT = 3;
public static final Error.Code MATCH_NOT_FOUND
The match id was not found.
MATCH_NOT_FOUND = 4;
public static final Error.Code MATCH_JOIN_REJECTED
The match join was rejected.
MATCH_JOIN_REJECTED = 5;
public static final Error.Code RUNTIME_FUNCTION_NOT_FOUND
The runtime function does not exist on the server.
RUNTIME_FUNCTION_NOT_FOUND = 6;
public static final Error.Code RUNTIME_FUNCTION_EXCEPTION
The runtime function executed with an error.
RUNTIME_FUNCTION_EXCEPTION = 7;
public static final Error.Code UNRECOGNIZED
public static final int RUNTIME_EXCEPTION_VALUE
An unexpected result from the server.
RUNTIME_EXCEPTION = 0;
public static final int UNRECOGNIZED_PAYLOAD_VALUE
The server received a message which is not recognised.
UNRECOGNIZED_PAYLOAD = 1;
public static final int MISSING_PAYLOAD_VALUE
A message was expected but contains no content.
MISSING_PAYLOAD = 2;
public static final int BAD_INPUT_VALUE
Fields in the message have an invalid format.
BAD_INPUT = 3;
public static final int MATCH_NOT_FOUND_VALUE
The match id was not found.
MATCH_NOT_FOUND = 4;
public static final int MATCH_JOIN_REJECTED_VALUE
The match join was rejected.
MATCH_JOIN_REJECTED = 5;
public static final int RUNTIME_FUNCTION_NOT_FOUND_VALUE
The runtime function does not exist on the server.
RUNTIME_FUNCTION_NOT_FOUND = 6;
public static final int RUNTIME_FUNCTION_EXCEPTION_VALUE
The runtime function executed with an error.
RUNTIME_FUNCTION_EXCEPTION = 7;
public static Error.Code[] values()
for (Error.Code c : Error.Code.values()) System.out.println(c);
public static Error.Code 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 nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Error.Code valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Error.Code forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Error.Code> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Error.Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)