Enum Class DisconnectReason

java.lang.Object
java.lang.Enum<DisconnectReason>
net.ME1312.SubData.Server.Library.DisconnectReason
All Implemented Interfaces:
Serializable, Comparable<DisconnectReason>, java.lang.constant.Constable

public enum DisconnectReason extends Enum<DisconnectReason>
Disconnect Reason Enum
  • Enum Constant Details

    • INITIALIZATION_TIMEOUT

      public static final DisconnectReason INITIALIZATION_TIMEOUT
      SubData could not self-initialize within the allotted time
    • PROTOCOL_MISMATCH

      public static final DisconnectReason PROTOCOL_MISMATCH
      SubData disconnected because of a Protocol Mismatch
    • ENCRYPTION_MISMATCH

      public static final DisconnectReason ENCRYPTION_MISMATCH
      SubData disconnected because:
      • The client could not meet the encryption standards
      • The client was using the right encryption, but the wrong key to encrypt with
      • The client began sending unintelligible data after the encryption request
    • INVALID_LOGIN

      public static final DisconnectReason INVALID_LOGIN
      SubData disconnected because the AuthService determined the client's login credentials to be invalid
      See Also:
    • UNHANDLED_EXCEPTION

      public static final DisconnectReason UNHANDLED_EXCEPTION
      SubData disconnected because an unhandled exception occurred
    • CONNECTION_INTERRUPTED

      public static final DisconnectReason CONNECTION_INTERRUPTED
      SubData disconnected because the socket connection was interrupted
    • CLOSE_REQUESTED

      public static final DisconnectReason CLOSE_REQUESTED
      SubData disconnected because it was instructed to do so
  • Method Details

    • values

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