public enum ErrorCode extends Enum<ErrorCode>
Modifier and Type | Field and Description |
---|---|
int |
code |
Modifier and Type | Method and Description |
---|---|
static ErrorCode |
from(int error) |
static ErrorCode |
valueOf(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(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 static ErrorCode from(int error)
Copyright © 1995-2015 Webtide. All Rights Reserved.