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 QuicTransportError
AEAD_LIMIT_REACHED
An endpoint has reached the confidentiality or integrity limit for the AEAD algorithm used by the given connection.static QuicTransportError
APPLICATION_ERROR
The application or application protocol caused the connection to be closed.static QuicTransportError
CONNECTION_ID_LIMIT_ERROR
The number of connection IDs provided by the peer exceeds the advertised active_connection_id_limit.static QuicTransportError
CONNECTION_REFUSED
The server refused to accept a new connection.static QuicTransportError
CRYPTO_BUFFER_EXCEEDED
An endpoint has received more data in CRYPTO frames than it can buffer.static 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.static QuicTransportError
FLOW_CONTROL_ERROR
An endpoint received more data than it permitted in its advertised data limits.static 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.static QuicTransportError
INTERNAL_ERROR
The endpoint encountered an internal error and cannot continue with the connection.static QuicTransportError
INVALID_TOKEN
A server received a client Initial that contained an invalid Token field.static QuicTransportError
KEY_UPDATE_ERROR
An endpoint detected errors in performing key updates.static 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.static QuicTransportError
NO_VIABLE_PATH
n endpoint has determined that the network path is incapable of supporting QUIC.static QuicTransportError
PROTOCOL_VIOLATION
An endpoint detected an error with protocol compliance that was not covered by more specific error codes.static QuicTransportError
STREAM_LIMIT_ERROR
An endpoint received a frame for a stream identifier that exceeded its advertised stream limit for the corresponding stream type.static QuicTransportError
STREAM_STATE_ERROR
An endpoint received a frame for a stream that was not in a state that permitted that frame.static 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
code()
Returns the code for this error used on the wire as defined by RFC9000.boolean
equals(java.lang.Object o)
int
hashCode()
boolean
isCryptoError()
Returns true if this is aCRYPTO_ERROR
.java.lang.String
name()
Returns the name of the error as defined by RFC9000.java.lang.String
toString()
static QuicTransportError
valueOf(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-