Enum Class Error.Code

java.lang.Object
java.lang.Enum<Error.Code>
com.heroiclabs.nakama.rtapi.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
  • Enum Constant Details

    • RUNTIME_EXCEPTION

      public static final Error.Code RUNTIME_EXCEPTION
       An unexpected result from the server.
       
      RUNTIME_EXCEPTION = 0;
    • UNRECOGNIZED_PAYLOAD

      public static final Error.Code UNRECOGNIZED_PAYLOAD
       The server received a message which is not recognised.
       
      UNRECOGNIZED_PAYLOAD = 1;
    • MISSING_PAYLOAD

      public static final Error.Code MISSING_PAYLOAD
       A message was expected but contains no content.
       
      MISSING_PAYLOAD = 2;
    • BAD_INPUT

      public static final Error.Code BAD_INPUT
       Fields in the message have an invalid format.
       
      BAD_INPUT = 3;
    • MATCH_NOT_FOUND

      public static final Error.Code MATCH_NOT_FOUND
       The match id was not found.
       
      MATCH_NOT_FOUND = 4;
    • MATCH_JOIN_REJECTED

      public static final Error.Code MATCH_JOIN_REJECTED
       The match join was rejected.
       
      MATCH_JOIN_REJECTED = 5;
    • RUNTIME_FUNCTION_NOT_FOUND

      public static final Error.Code RUNTIME_FUNCTION_NOT_FOUND
       The runtime function does not exist on the server.
       
      RUNTIME_FUNCTION_NOT_FOUND = 6;
    • RUNTIME_FUNCTION_EXCEPTION

      public static final Error.Code RUNTIME_FUNCTION_EXCEPTION
       The runtime function executed with an error.
       
      RUNTIME_FUNCTION_EXCEPTION = 7;
    • UNRECOGNIZED

      public static final Error.Code UNRECOGNIZED
  • Field Details

    • RUNTIME_EXCEPTION_VALUE

      public static final int RUNTIME_EXCEPTION_VALUE
       An unexpected result from the server.
       
      RUNTIME_EXCEPTION = 0;
      See Also:
    • UNRECOGNIZED_PAYLOAD_VALUE

      public static final int UNRECOGNIZED_PAYLOAD_VALUE
       The server received a message which is not recognised.
       
      UNRECOGNIZED_PAYLOAD = 1;
      See Also:
    • MISSING_PAYLOAD_VALUE

      public static final int MISSING_PAYLOAD_VALUE
       A message was expected but contains no content.
       
      MISSING_PAYLOAD = 2;
      See Also:
    • BAD_INPUT_VALUE

      public static final int BAD_INPUT_VALUE
       Fields in the message have an invalid format.
       
      BAD_INPUT = 3;
      See Also:
    • MATCH_NOT_FOUND_VALUE

      public static final int MATCH_NOT_FOUND_VALUE
       The match id was not found.
       
      MATCH_NOT_FOUND = 4;
      See Also:
    • MATCH_JOIN_REJECTED_VALUE

      public static final int MATCH_JOIN_REJECTED_VALUE
       The match join was rejected.
       
      MATCH_JOIN_REJECTED = 5;
      See Also:
    • RUNTIME_FUNCTION_NOT_FOUND_VALUE

      public static final int RUNTIME_FUNCTION_NOT_FOUND_VALUE
       The 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_VALUE
       The runtime function executed with an error.
       
      RUNTIME_FUNCTION_EXCEPTION = 7;
      See Also:
  • Method Details

    • values

      public static Error.Code[] 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

      public static Error.Code valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Error.Code valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static Error.Code forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<Error.Code> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static Error.Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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 name
      NullPointerException - if the argument is null