public enum ErrorCode extends Enum<ErrorCode>
| 限定符和类型 | 方法和说明 |
|---|---|
static Optional<ErrorCode> |
of(String code) |
static ErrorCode |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ErrorCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ErrorCode REQUEST_HANDLING
public static final ErrorCode CLIENT_OFFLINE
public static final ErrorCode CONNECTION_LOST
public static final ErrorCode NO_REPLY
public static final ErrorCode TIME_OUT
public static final ErrorCode SYSTEM_ERROR
public static final ErrorCode UNSUPPORTED_MESSAGE
public static final ErrorCode PARAMETER_ERROR
public static final ErrorCode PARAMETER_UNDEFINED
public static final ErrorCode FUNCTION_UNDEFINED
public static final ErrorCode PROPERTY_UNDEFINED
public static final ErrorCode UNKNOWN_PARENT_DEVICE
public static final ErrorCode CYCLIC_DEPENDENCE
public static final ErrorCode SERVER_NOT_AVAILABLE
public static final ErrorCode UNKNOWN
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2019–2022. All rights reserved.