Class QuicTransportError

    • Field Detail

      • NO_ERROR

        public static final QuicTransportError NO_ERROR
        An endpoint uses this with CONNECTION_CLOSE to signal that the connection is being closed abruptly in the absence of any error.
      • INTERNAL_ERROR

        public static final QuicTransportError INTERNAL_ERROR
        The endpoint encountered an internal error and cannot continue with the connection.
      • CONNECTION_REFUSED

        public static final QuicTransportError CONNECTION_REFUSED
        The server refused to accept a new connection.
      • FLOW_CONTROL_ERROR

        public static final QuicTransportError FLOW_CONTROL_ERROR
        An endpoint received more data than it permitted in its advertised data limits.
      • STREAM_LIMIT_ERROR

        public static final QuicTransportError STREAM_LIMIT_ERROR
        An endpoint received a frame for a stream identifier that exceeded its advertised stream limit for the corresponding stream type.
      • STREAM_STATE_ERROR

        public static final QuicTransportError STREAM_STATE_ERROR
        An endpoint received a frame for a stream that was not in a state that permitted that frame.
      • FINAL_SIZE_ERROR

        public static final QuicTransportError FINAL_SIZE_ERROR
        (1) An endpoint received a STREAM frame containing data that exceeded the previously established final size, (2) an endpoint received a STREAM frame or a RESET_STREAM frame containing a final size that was lower than the size of stream data that was already received, or (3) an endpoint received a STREAM frame or a RESET_STREAM frame containing a different final size to the one already established.
      • FRAME_ENCODING_ERROR

        public static final QuicTransportError FRAME_ENCODING_ERROR
        An endpoint received a frame that was badly formatted -- for instance, a frame of an unknown type or an ACK frame that has more acknowledgment ranges than the remainder of the packet could carry.
      • TRANSPORT_PARAMETER_ERROR

        public static final QuicTransportError TRANSPORT_PARAMETER_ERROR
        An endpoint received transport parameters that were badly formatted, included an invalid value, omitted a mandatory transport parameter, included a forbidden transport parameter, or were otherwise in error.
      • CONNECTION_ID_LIMIT_ERROR

        public static final QuicTransportError CONNECTION_ID_LIMIT_ERROR
        The number of connection IDs provided by the peer exceeds the advertised active_connection_id_limit.
      • PROTOCOL_VIOLATION

        public static final QuicTransportError PROTOCOL_VIOLATION
        An endpoint detected an error with protocol compliance that was not covered by more specific error codes.
      • INVALID_TOKEN

        public static final QuicTransportError INVALID_TOKEN
        A server received a client Initial that contained an invalid Token field.
      • APPLICATION_ERROR

        public static final QuicTransportError APPLICATION_ERROR
        The application or application protocol caused the connection to be closed.
      • CRYPTO_BUFFER_EXCEEDED

        public static final QuicTransportError CRYPTO_BUFFER_EXCEEDED
        An endpoint has received more data in CRYPTO frames than it can buffer.
      • KEY_UPDATE_ERROR

        public static final QuicTransportError KEY_UPDATE_ERROR
        An endpoint detected errors in performing key updates.
      • AEAD_LIMIT_REACHED

        public static final QuicTransportError AEAD_LIMIT_REACHED
        An endpoint has reached the confidentiality or integrity limit for the AEAD algorithm used by the given connection.
      • NO_VIABLE_PATH

        public static final QuicTransportError NO_VIABLE_PATH
        n endpoint has determined that the network path is incapable of supporting QUIC. An endpoint is unlikely to receive a CONNECTION_CLOSE frame carrying this code except when the path does not support a large enough MTU.
    • Method Detail

      • isCryptoError

        public boolean isCryptoError()
        Returns true if this is a CRYPTO_ERROR.
      • name

        public java.lang.String name()
        Returns the name of the error as defined by RFC9000.
        Returns:
        name
      • code

        public long code()
        Returns the code for this error used on the wire as defined by RFC9000.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object