Enum Class ConnectionError.Kind

java.lang.Object
java.lang.Enum<ConnectionError.Kind>
io.github.mahmoudimus.quic.connection.ConnectionError.Kind
All Implemented Interfaces:
Serializable, Comparable<ConnectionError.Kind>, Constable
Enclosing class:
ConnectionError

public static enum ConnectionError.Kind extends Enum<ConnectionError.Kind>
What ended a connection.
  • Enum Constant Details

    • TRANSPORT_ERROR

      public static final ConnectionError.Kind TRANSPORT_ERROR
      This endpoint detected a protocol error and closed the connection.
    • CONNECTION_CLOSED

      public static final ConnectionError.Kind CONNECTION_CLOSED
      The peer closed the connection with a transport error (CONNECTION_CLOSE 0x1c).
    • APPLICATION_CLOSED

      public static final ConnectionError.Kind APPLICATION_CLOSED
      The peer's application closed the connection (CONNECTION_CLOSE 0x1d).
    • LOCALLY_CLOSED

      public static final ConnectionError.Kind LOCALLY_CLOSED
      The local application closed the connection.
    • TIMED_OUT

      public static final ConnectionError.Kind TIMED_OUT
      The idle timeout expired.
    • RESET

      public static final ConnectionError.Kind RESET
      The peer sent a stateless reset.
    • VERSION_MISMATCH

      public static final ConnectionError.Kind VERSION_MISMATCH
      The server supports none of the client's versions.
  • Method Details

    • values

      public static ConnectionError.Kind[] 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 ConnectionError.Kind 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