public enum ErrorCode extends java.lang.Enum<ErrorCode>
| Enum Constant | Description |
|---|---|
CANCEL_STREAM_ERROR |
Indicates that a stream is no longer needed.
|
COMPRESSION_ERROR |
Indicates inability to maintain the HPACK compression context.
|
ENHANCE_YOUR_CALM_ERROR |
Indicates that the other peer might be generating excessive load.
|
FLOW_CONTROL_ERROR |
Indicates a HTTP/2 flow control violation.
|
FRAME_SIZE_ERROR |
Indicates that a frame has an invalid length.
|
HTTP_1_1_REQUIRED_ERROR |
Indicates that HTTP/1.1 must be used rather than HTTP/2.
|
HTTP_CONNECT_ERROR |
Indicates that the connection established by a HTTP CONNECT was abnormally closed.
|
INADEQUATE_SECURITY_ERROR |
Indicates that the transport properties do not meet minimum security requirements.
|
INTERNAL_ERROR |
Indicates an internal error.
|
NO_ERROR |
Indicates no errors.
|
PROTOCOL_ERROR |
Indicates a generic HTTP/2 protocol violation.
|
REFUSED_STREAM_ERROR |
Indicates that a stream was rejected before application processing.
|
SETTINGS_TIMEOUT_ERROR |
Indicates that a SETTINGS frame did not receive a reply in a timely manner.
|
STREAM_CLOSED_ERROR |
Indicates that a stream frame has been received after the stream was closed.
|
| Modifier and Type | Field | Description |
|---|---|---|
int |
code |
| Modifier and Type | Method | Description |
|---|---|---|
static ErrorCode |
from(int error) |
|
static ErrorCode |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode NO_ERROR
public static final ErrorCode PROTOCOL_ERROR
public static final ErrorCode INTERNAL_ERROR
public static final ErrorCode FLOW_CONTROL_ERROR
public static final ErrorCode SETTINGS_TIMEOUT_ERROR
public static final ErrorCode STREAM_CLOSED_ERROR
public static final ErrorCode FRAME_SIZE_ERROR
public static final ErrorCode REFUSED_STREAM_ERROR
public static final ErrorCode CANCEL_STREAM_ERROR
public static final ErrorCode COMPRESSION_ERROR
public static final ErrorCode HTTP_CONNECT_ERROR
public static final ErrorCode ENHANCE_YOUR_CALM_ERROR
public static final ErrorCode INADEQUATE_SECURITY_ERROR
public static final ErrorCode HTTP_1_1_REQUIRED_ERROR
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ErrorCode from(int error)
Copyright © 1995–2018 Webtide. All rights reserved.