public enum ErrorCode extends Enum<ErrorCode >
| Enum Constant and Description |
|---|
CANCEL
|
COMPRESSION_ERROR
|
CONNECT_ERROR
|
ENHANCE_YOUR_CALM
|
FLOW_CONTROL_ERROR
|
FRAME_TOO_LARGE
|
HTTP_1_1_REQUIRED
|
INADEQUATE_SECURITY
|
INTERNAL_ERROR
|
INVALID_CREDENTIALS
|
INVALID_STREAM
A subtype of PROTOCOL_ERROR used by SPDY.
|
NO_ERROR
Not an error! For SPDY stream resets, prefer null over NO_ERROR.
|
PROTOCOL_ERROR
|
REFUSED_STREAM
|
STREAM_ALREADY_CLOSED
A subtype of PROTOCOL_ERROR used by SPDY.
|
STREAM_CLOSED
|
STREAM_IN_USE
A subtype of PROTOCOL_ERROR used by SPDY.
|
UNSUPPORTED_VERSION
A subtype of PROTOCOL_ERROR used by SPDY.
|
| Modifier and Type | Field and Description |
|---|---|
int |
httpCode
|
int |
spdyGoAwayCode
|
int |
spdyRstCode
|
| Modifier and Type | Method and Description |
|---|---|
static ErrorCode |
fromHttp2(int code)
|
static ErrorCode |
fromSpdy3Rst(int code)
|
static ErrorCode |
fromSpdyGoAway(int code)
|
static ErrorCode |
valueOf(String
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 ErrorCodeNO_ERROR
public static final ErrorCodePROTOCOL_ERROR
public static final ErrorCodeINVALID_STREAM
public static final ErrorCodeUNSUPPORTED_VERSION
public static final ErrorCodeSTREAM_IN_USE
public static final ErrorCodeSTREAM_ALREADY_CLOSED
public static final ErrorCodeINTERNAL_ERROR
public static final ErrorCodeFLOW_CONTROL_ERROR
public static final ErrorCodeSTREAM_CLOSED
public static final ErrorCodeFRAME_TOO_LARGE
public static final ErrorCodeREFUSED_STREAM
public static final ErrorCodeCANCEL
public static final ErrorCodeCOMPRESSION_ERROR
public static final ErrorCodeCONNECT_ERROR
public static final ErrorCodeENHANCE_YOUR_CALM
public static final ErrorCodeINADEQUATE_SECURITY
public static final ErrorCodeHTTP_1_1_REQUIRED
public static final ErrorCodeINVALID_CREDENTIALS
public final int httpCode
public final int spdyRstCode
public final int spdyGoAwayCode
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCodevalueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null
public static ErrorCodefromSpdy3Rst(int code)
public static ErrorCodefromHttp2(int code)
public static ErrorCodefromSpdyGoAway(int code)