Enum H2Error
- All Implemented Interfaces:
Serializable
,Comparable<H2Error>
- Since:
- 5.0
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStream canceled.Compression state not updated.TCP connection error.Processing capacity exceeded.Flow control limits exceeded.Frame size incorrect.Use HTTP/1.1 for the request.Negotiated TLS parameters not acceptable.Implementation faultGraceful shutdownProtocol error detectedStream not processedSettings not acknowledged.Frame received for closed stream. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
private static final ConcurrentMap
<Integer, H2Error> -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
NO_ERROR
Graceful shutdownThe associated condition is not as a result of an error.
-
PROTOCOL_ERROR
Protocol error detectedThe endpoint detected an unspecific protocol error. This error is for use when a more specific error code is not available
-
INTERNAL_ERROR
Implementation faultThe endpoint encountered an unexpected internal error.
-
FLOW_CONTROL_ERROR
Flow control limits exceeded.The endpoint detected that its peer violated the flow control protocol.
-
SETTINGS_TIMEOUT
Settings not acknowledged.The endpoint sent a SETTINGS frame, but did not receive a response in a timely manner.
-
STREAM_CLOSED
Frame received for closed stream.The endpoint received a frame after a stream was half closed.
-
FRAME_SIZE_ERROR
Frame size incorrect.The endpoint received a frame with an invalid size.
-
REFUSED_STREAM
Stream not processedThe endpoint refuses the stream prior to performing any application processing.
-
CANCEL
Stream canceled.Used by the endpoint to indicate that the stream is no longer needed
-
COMPRESSION_ERROR
Compression state not updated.The endpoint is unable to maintain the header compression context for the connection.
-
CONNECT_ERROR
TCP connection error.The connection established in response to a CONNECT request was reset or abnormally closed.
-
ENHANCE_YOUR_CALM
Processing capacity exceeded.The endpoint detected that its peer is exhibiting a behavior that might be generating excessive load.
-
INADEQUATE_SECURITY
Negotiated TLS parameters not acceptable.The underlying transport has properties that do not meet minimum security requirements.
-
HTTP_1_1_REQUIRED
Use HTTP/1.1 for the request.The endpoint requires that HTTP/1.1 be used instead of HTTP/2.
-
-
Field Details
-
code
int code -
MAP_BY_CODE
-
-
Constructor Details
-
H2Error
private H2Error(int code)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public int getCode() -
getByCode
-