Enum Constant and Description |
---|
CANCEL |
COMPRESSION_ERROR |
CONNECT_ERROR |
ENHANCE_YOUR_CALM |
FLOW_CONTROL_ERROR |
HTTP_1_1_REQUIRED |
INADEQUATE_SECURITY |
INTERNAL_ERROR |
NO_ERROR
Not an error!
|
PROTOCOL_ERROR |
REFUSED_STREAM |
Modifier and Type | Field and Description |
---|---|
int |
httpCode |
Modifier and Type | Method and Description |
---|---|
static ErrorCode |
fromHttp2(int code) |
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 REFUSED_STREAM
public static final ErrorCode CANCEL
public static final ErrorCode COMPRESSION_ERROR
public static final ErrorCode CONNECT_ERROR
public static final ErrorCode ENHANCE_YOUR_CALM
public static final ErrorCode INADEQUATE_SECURITY
public static final ErrorCode HTTP_1_1_REQUIRED
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 fromHttp2(int code)