public enum ErrorCode extends Enum<ErrorCode>
| 限定符和类型 | 字段和说明 |
|---|---|
int |
code |
| 限定符和类型 | 方法和说明 |
|---|---|
static ErrorCode |
from(int error) |
static ErrorCode |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ErrorCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static ErrorCode from(int error)
Copyright © 2016. All rights reserved.