Enum Class RejectReason

java.lang.Object
java.lang.Enum<RejectReason>
com.xpdustry.claj.common.status.RejectReason
All Implemented Interfaces:
Serializable, Comparable<RejectReason>, Constable

public enum RejectReason extends Enum<RejectReason>
  • Enum Constant Details

    • error

      public static final RejectReason error
      Rejected without indications.
    • serverFull

      public static final RejectReason serverFull
      The server is reporting as full.
    • serverClosing

      public static final RejectReason serverClosing
      The server is closing
    • roomNotFound

      public static final RejectReason roomNotFound
      No room with this id, or id is -1 (which is an invalid id).
    • roomFull

      public static final RejectReason roomFull
      Room full.
    • passwordRequired

      public static final RejectReason passwordRequired
      A password is required to join the room.
    • invalidPassword

      public static final RejectReason invalidPassword
      The provided password is invalid.
    • incompatible

      public static final RejectReason incompatible
      The CLaJ implementation of the room host is not the same as the provided one.
  • Field Details

  • Method Details

    • values

      public static RejectReason[] 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 RejectReason 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