Enum ServerErrors

java.lang.Object
java.lang.Enum<ServerErrors>
io.socket.engineio.server.ServerErrors
All Implemented Interfaces:
Serializable, Comparable<ServerErrors>, java.lang.constant.Constable

enum ServerErrors extends Enum<ServerErrors>
  • Enum Constant Details

    • UNKNOWN_TRANSPORT

      public static final ServerErrors UNKNOWN_TRANSPORT
    • UNKNOWN_SID

      public static final ServerErrors UNKNOWN_SID
    • BAD_HANDSHAKE_METHOD

      public static final ServerErrors BAD_HANDSHAKE_METHOD
    • BAD_REQUEST

      public static final ServerErrors BAD_REQUEST
    • FORBIDDEN

      public static final ServerErrors FORBIDDEN
    • UNSUPPORTED_PROTOCOL_VERSION

      public static final ServerErrors UNSUPPORTED_PROTOCOL_VERSION
  • Field Details

    • mCode

      private final int mCode
    • mMessage

      private final String mMessage
  • Constructor Details

    • ServerErrors

      private ServerErrors(int code, String message)
  • Method Details

    • values

      public static ServerErrors[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ServerErrors valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public int getCode()
    • getMessage

      public String getMessage()