public enum H2Error extends Enum<H2Error>
Enum Constant and Description |
---|
CANCEL
Stream canceled.
|
COMPRESSION_ERROR
Compression state not updated.
|
CONNECT_ERROR
TCP connection error.
|
ENHANCE_YOUR_CALM
Processing capacity exceeded.
|
FLOW_CONTROL_ERROR
Flow control limits exceeded.
|
FRAME_SIZE_ERROR
Frame size incorrect.
|
HTTP_1_1_REQUIRED
Use HTTP/1.1 for the request.
|
INADEQUATE_SECURITY
Negotiated TLS parameters not acceptable.
|
INTERNAL_ERROR
Implementation fault
|
NO_ERROR
Graceful shutdown
|
PROTOCOL_ERROR
Protocol error detected
|
REFUSED_STREAM
Stream not processed
|
SETTINGS_TIMEOUT
Settings not acknowledged.
|
STREAM_CLOSED
Frame received for closed stream.
|
Modifier and Type | Method and Description |
---|---|
static H2Error |
getByCode(int code) |
int |
getCode() |
static H2Error |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static H2Error[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final H2Error NO_ERROR
The associated condition is not as a result of an error.
public static final H2Error PROTOCOL_ERROR
The endpoint detected an unspecific protocol error. This error is for use when a more specific error code is not available
public static final H2Error INTERNAL_ERROR
The endpoint encountered an unexpected internal error.
public static final H2Error FLOW_CONTROL_ERROR
The endpoint detected that its peer violated the flow control protocol.
public static final H2Error SETTINGS_TIMEOUT
The endpoint sent a SETTINGS frame, but did not receive a response in a timely manner.
public static final H2Error STREAM_CLOSED
The endpoint received a frame after a stream was half closed.
public static final H2Error FRAME_SIZE_ERROR
The endpoint received a frame with an invalid size.
public static final H2Error REFUSED_STREAM
The endpoint refuses the stream prior to performing any application processing.
public static final H2Error CANCEL
Used by the endpoint to indicate that the stream is no longer needed
public static final H2Error COMPRESSION_ERROR
The endpoint is unable to maintain the header compression context for the connection.
public static final H2Error CONNECT_ERROR
The connection established in response to a CONNECT request was reset or abnormally closed.
public static final H2Error ENHANCE_YOUR_CALM
The endpoint detected that its peer is exhibiting a behavior that might be generating excessive load.
public static final H2Error INADEQUATE_SECURITY
The underlying transport has properties that do not meet minimum security requirements.
public static final H2Error HTTP_1_1_REQUIRED
The endpoint requires that HTTP/1.1 be used instead of HTTP/2.
public static H2Error[] values()
for (H2Error c : H2Error.values()) System.out.println(c);
public static H2Error valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getCode()
public static H2Error getByCode(int code)
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.