Package com.heroiclabs.nakama.rtapi
Enum Class Error.Code
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Error.Code>
,Constable
- Enclosing class:
- Error
public static enum Error.Code
extends Enum<Error.Code>
implements com.google.protobuf.ProtocolMessageEnum
The selection of possible error codes.Protobuf enum
nakama.realtime.Error.Code
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFields in the message have an invalid format.The match join was rejected.The match id was not found.A message was expected but contains no content.An unexpected result from the server.The runtime function executed with an error.The runtime function does not exist on the server.The server received a message which is not recognised. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Fields in the message have an invalid format.static final int
The match join was rejected.static final int
The match id was not found.static final int
A message was expected but contains no content.static final int
An unexpected result from the server.static final int
The runtime function executed with an error.static final int
The runtime function does not exist on the server.static final int
The server received a message which is not recognised. -
Method Summary
Modifier and TypeMethodDescriptionstatic Error.Code
forNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap<Error.Code>
static Error.Code
valueOf
(int value) Deprecated.static Error.Code
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static Error.Code
Returns the enum constant of this class with the specified name.static Error.Code[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RUNTIME_EXCEPTION
An unexpected result from the server.
RUNTIME_EXCEPTION = 0;
-
UNRECOGNIZED_PAYLOAD
The server received a message which is not recognised.
UNRECOGNIZED_PAYLOAD = 1;
-
MISSING_PAYLOAD
A message was expected but contains no content.
MISSING_PAYLOAD = 2;
-
BAD_INPUT
Fields in the message have an invalid format.
BAD_INPUT = 3;
-
MATCH_NOT_FOUND
The match id was not found.
MATCH_NOT_FOUND = 4;
-
MATCH_JOIN_REJECTED
The match join was rejected.
MATCH_JOIN_REJECTED = 5;
-
RUNTIME_FUNCTION_NOT_FOUND
The runtime function does not exist on the server.
RUNTIME_FUNCTION_NOT_FOUND = 6;
-
RUNTIME_FUNCTION_EXCEPTION
The runtime function executed with an error.
RUNTIME_FUNCTION_EXCEPTION = 7;
-
UNRECOGNIZED
-
-
Field Details
-
RUNTIME_EXCEPTION_VALUE
public static final int RUNTIME_EXCEPTION_VALUEAn unexpected result from the server.
RUNTIME_EXCEPTION = 0;
- See Also:
-
UNRECOGNIZED_PAYLOAD_VALUE
public static final int UNRECOGNIZED_PAYLOAD_VALUEThe server received a message which is not recognised.
UNRECOGNIZED_PAYLOAD = 1;
- See Also:
-
MISSING_PAYLOAD_VALUE
public static final int MISSING_PAYLOAD_VALUEA message was expected but contains no content.
MISSING_PAYLOAD = 2;
- See Also:
-
BAD_INPUT_VALUE
public static final int BAD_INPUT_VALUEFields in the message have an invalid format.
BAD_INPUT = 3;
- See Also:
-
MATCH_NOT_FOUND_VALUE
public static final int MATCH_NOT_FOUND_VALUEThe match id was not found.
MATCH_NOT_FOUND = 4;
- See Also:
-
MATCH_JOIN_REJECTED_VALUE
public static final int MATCH_JOIN_REJECTED_VALUEThe match join was rejected.
MATCH_JOIN_REJECTED = 5;
- See Also:
-
RUNTIME_FUNCTION_NOT_FOUND_VALUE
public static final int RUNTIME_FUNCTION_NOT_FOUND_VALUEThe runtime function does not exist on the server.
RUNTIME_FUNCTION_NOT_FOUND = 6;
- See Also:
-
RUNTIME_FUNCTION_EXCEPTION_VALUE
public static final int RUNTIME_FUNCTION_EXCEPTION_VALUEThe runtime function executed with an error.
RUNTIME_FUNCTION_EXCEPTION = 7;
- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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:
value
- 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
-
forNumber
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
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:
desc
- 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
-