Package io.netty.handler.codec.quic
Class QuicTransportError
- java.lang.Object
-
- io.netty.handler.codec.quic.QuicTransportError
-
public final class QuicTransportError extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static QuicTransportErrorAEAD_LIMIT_REACHEDAn endpoint has reached the confidentiality or integrity limit for the AEAD algorithm used by the given connection.static QuicTransportErrorAPPLICATION_ERRORThe application or application protocol caused the connection to be closed.static QuicTransportErrorCONNECTION_ID_LIMIT_ERRORThe number of connection IDs provided by the peer exceeds the advertised active_connection_id_limit.static QuicTransportErrorCONNECTION_REFUSEDThe server refused to accept a new connection.static QuicTransportErrorCRYPTO_BUFFER_EXCEEDEDAn endpoint has received more data in CRYPTO frames than it can buffer.static QuicTransportErrorFINAL_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.static QuicTransportErrorFLOW_CONTROL_ERRORAn endpoint received more data than it permitted in its advertised data limits.static QuicTransportErrorFRAME_ENCODING_ERRORAn 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.static QuicTransportErrorINTERNAL_ERRORThe endpoint encountered an internal error and cannot continue with the connection.static QuicTransportErrorINVALID_TOKENA server received a client Initial that contained an invalid Token field.static QuicTransportErrorKEY_UPDATE_ERRORAn endpoint detected errors in performing key updates.static QuicTransportErrorNO_ERRORAn endpoint uses this with CONNECTION_CLOSE to signal that the connection is being closed abruptly in the absence of any error.static QuicTransportErrorNO_VIABLE_PATHn endpoint has determined that the network path is incapable of supporting QUIC.static QuicTransportErrorPROTOCOL_VIOLATIONAn endpoint detected an error with protocol compliance that was not covered by more specific error codes.static QuicTransportErrorSTREAM_LIMIT_ERRORAn endpoint received a frame for a stream identifier that exceeded its advertised stream limit for the corresponding stream type.static QuicTransportErrorSTREAM_STATE_ERRORAn endpoint received a frame for a stream that was not in a state that permitted that frame.static QuicTransportErrorTRANSPORT_PARAMETER_ERRORAn 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longcode()Returns the code for this error used on the wire as defined by RFC9000.booleanequals(java.lang.Object o)inthashCode()booleanisCryptoError()Returns true if this is aCRYPTO_ERROR.java.lang.Stringname()Returns the name of the error as defined by RFC9000.java.lang.StringtoString()static QuicTransportErrorvalueOf(long value)
-
-
-
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 aCRYPTO_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.
-
valueOf
public static QuicTransportError valueOf(long value)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-