CRYPTO_ERROR have a range of possible values.
Usually, the value (a long) would be used instead of the
enum, but the enum itself can be useful - for instance in
switch statements.
This enum models QUIC transport error codes as defined in
RFC 9000, section 20.1.
| Modifier and Type | Field and Description |
|---|---|
| public static final QuicTransportErrors | AEAD_LIMIT_REACHED
AEAD limit reached error From RFC 9000, Section 20.1:
|
| public static final QuicTransportErrors | APPLICATION_ERROR
Application error. |
| public static final QuicTransportErrors | CONNECTION_ID_LIMIT_ERROR
Connection id limit error. |
| public static final QuicTransportErrors | CONNECTION_REFUSED
Connection refused error. |
| public static final QuicTransportErrors | CRYPTO_BUFFER_EXCEEDED
Crypto buffer exceeded error. |
| public static final QuicTransportErrors | CRYPTO_ERROR
Crypto error. |
| public static final QuicTransportErrors | FINAL_SIZE_ERROR
Final size error. |
| public static final QuicTransportErrors | FLOW_CONTROL_ERROR
Flow control error. |
| public static final QuicTransportErrors | FRAME_ENCODING_ERROR
Frame encoding error. |
| private final long | |
| public static final QuicTransportErrors | INTERNAL_ERROR
Internal Error. |
| public static final QuicTransportErrors | INVALID_TOKEN
Invalid token error. |
| public static final QuicTransportErrors | KEY_UPDATE_ERROR
Key update error. |
| public static final QuicTransportErrors | NO_ERROR
No error. |
| public static final QuicTransportErrors | NO_VIABLE_PATH
No viable path error. |
| public static final QuicTransportErrors | PROTOCOL_VIOLATION
Protocol violiation error. |
| public static final QuicTransportErrors | STREAM_LIMIT_ERROR
Stream limit error. |
| public static final QuicTransportErrors | STREAM_STATE_ERROR
Stream state error. |
| private final long | |
| public static final QuicTransportErrors | TRANSPORT_PARAMETER_ERROR
Transport parameter error. |
| public static final QuicTransportErrors | VERSION_NEGOTIATION_ERROR
Error negotiating version. |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: the code for this transport error, if this error has a single possible code value,-1 otherwiseReturns the code for this transport error, if this error
has a single possible code value,
|
| public long | Returns: the first possible code value in the range, or the code value if this error has a single possible code valueReturns the first possible code value in the range, or the code value if this error has a single possible code value. |
| public boolean | Returns: true if this error has a single possible code valueReturns true if this error has a single possible code value. |
| public boolean | Returns: true if this error has a range of possible code valuesReturns true if this error has a range of possible code values. |
| pack-priv boolean | Returns: true if the givencode value corresponds to
this error.an error code value code)Tells whether the given |
| public static Optional | ofCode(long
a code)code valueReturns the |
| public long | Returns: the last possible code value in the range, or the code value if this error has a single possible code valueReturns the last possible code value in the range, or the code value if this error has a single possible code value. |
| public static String | |
| public static QuicTransportErrors | |
| public static QuicTransportErrors[] |
| AEAD_LIMIT_REACHED | back to summary |
|---|---|
| public static final QuicTransportErrors AEAD_LIMIT_REACHED AEAD limit reached error From RFC 9000, Section 20.1:
| |
| APPLICATION_ERROR | back to summary |
|---|---|
| public static final QuicTransportErrors APPLICATION_ERROR Application error. From RFC 9000, Section 20.1:
| |
| CONNECTION_ID_LIMIT_ERROR | back to summary |
|---|---|
| public static final QuicTransportErrors CONNECTION_ID_LIMIT_ERROR Connection id limit error. From RFC 9000, Section 20.1:
| |
| CONNECTION_REFUSED | back to summary |
|---|---|
| public static final QuicTransportErrors CONNECTION_REFUSED Connection refused error. From RFC 9000, Section 20.1:
| |
| CRYPTO_BUFFER_EXCEEDED | back to summary |
|---|---|
| public static final QuicTransportErrors CRYPTO_BUFFER_EXCEEDED Crypto buffer exceeded error. From RFC 9000, Section 20.1:
| |
| CRYPTO_ERROR | back to summary |
|---|---|
| public static final QuicTransportErrors CRYPTO_ERROR Crypto error. From RFC 9000, Section 20.1:
| |
| FINAL_SIZE_ERROR | back to summary |
|---|---|
| public static final QuicTransportErrors FINAL_SIZE_ERROR Final size error. From RFC 9000, Section 20.1:
| |
| FLOW_CONTROL_ERROR | back to summary |
|---|---|
| public static final QuicTransportErrors FLOW_CONTROL_ERROR Flow control error. From RFC 9000, Section 20.1:
| |
| FRAME_ENCODING_ERROR | back to summary |
|---|---|
| public static final QuicTransportErrors FRAME_ENCODING_ERROR Frame encoding error. From RFC 9000, Section 20.1:
| |
| from | back to summary |
|---|---|
| private final long from | |
| INTERNAL_ERROR | back to summary |
|---|---|
| public static final QuicTransportErrors INTERNAL_ERROR Internal Error. From RFC 9000, Section 20.1:
| |
| INVALID_TOKEN | back to summary |
|---|---|
| public static final QuicTransportErrors INVALID_TOKEN Invalid token error. From RFC 9000, Section 20.1:
| |
| KEY_UPDATE_ERROR | back to summary |
|---|---|
| public static final QuicTransportErrors KEY_UPDATE_ERROR Key update error. From RFC 9000, Section 20.1:
| |
| NO_ERROR | back to summary |
|---|---|
| public static final QuicTransportErrors NO_ERROR No error. From RFC 9000, Section 20.1:
| |
| NO_VIABLE_PATH | back to summary |
|---|---|
| public static final QuicTransportErrors NO_VIABLE_PATH No viable path error. From RFC 9000, Section 20.1:
| |
| PROTOCOL_VIOLATION | back to summary |
|---|---|
| public static final QuicTransportErrors PROTOCOL_VIOLATION Protocol violiation error. From RFC 9000, Section 20.1:
| |
| STREAM_LIMIT_ERROR | back to summary |
|---|---|
| public static final QuicTransportErrors STREAM_LIMIT_ERROR Stream limit error. From RFC 9000, Section 20.1:
| |
| STREAM_STATE_ERROR | back to summary |
|---|---|
| public static final QuicTransportErrors STREAM_STATE_ERROR Stream state error. From RFC 9000, Section 20.1:
| |
| TRANSPORT_PARAMETER_ERROR | back to summary |
|---|---|
| public static final QuicTransportErrors TRANSPORT_PARAMETER_ERROR Transport parameter error. From RFC 9000, Section 20.1:
| |
| VERSION_NEGOTIATION_ERROR | back to summary |
|---|---|
| public static final QuicTransportErrors VERSION_NEGOTIATION_ERROR Error negotiating version.
| |
| QuicTransportErrors | back to summary |
|---|---|
| private QuicTransportErrors(long code) | |
| QuicTransportErrors | back to summary |
|---|---|
| private QuicTransportErrors(long from, long to) | |
| code | back to summary |
|---|---|
| public long code() Returns the code for this transport error, if this error
has a single possible code value,
| |
| from | back to summary |
|---|---|
| public long from() Returns the first possible code value in the range, or the code value if this error has a single possible code value.
| |
| hasCode | back to summary |
|---|---|
| public boolean hasCode() Returns true if this error has a single possible code value.
| |
| hasRange | back to summary |
|---|---|
| public boolean hasRange() Returns true if this error has a range of possible code values.
| |
| isFor | back to summary |
|---|---|
| pack-priv boolean isFor(long code) Tells whether the given
| |
| ofCode | back to summary |
|---|---|
| public static Optional Returns the
| |
| to | back to summary |
|---|---|
| public long to() Returns the last possible code value in the range, or the code value if this error has a single possible code value.
| |
| toString | back to summary |
|---|---|
| public static String toString(long code) | |
| valueOf | back to summary |
|---|---|
| public static QuicTransportErrors valueOf(String name) | |
| values | back to summary |
|---|---|
| public static QuicTransportErrors[] values() | |