public enum RpcErrorCode extends Enum<RpcErrorCode>
| 枚举常量和说明 |
|---|
CONTRACT_NOT_VALIDATION_ERROR |
CONTRACT_VALIDATION_ERROR |
CONTRACT_VALIDATION_FAILED |
DATA_NOT_EXISTS |
PARAMS_ERROR |
SYS_UNKNOWN_EXCEPTION |
TX_PARSE_ERROR |
TX_SHELL_ERROR |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCode() |
String |
getMessage() |
void |
setCode(String code) |
void |
setMessage(String message) |
static RpcErrorCode |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static RpcErrorCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final RpcErrorCode PARAMS_ERROR
public static final RpcErrorCode CONTRACT_NOT_VALIDATION_ERROR
public static final RpcErrorCode CONTRACT_VALIDATION_ERROR
public static final RpcErrorCode CONTRACT_VALIDATION_FAILED
public static final RpcErrorCode DATA_NOT_EXISTS
public static final RpcErrorCode TX_PARSE_ERROR
public static final RpcErrorCode TX_SHELL_ERROR
public static final RpcErrorCode SYS_UNKNOWN_EXCEPTION
public static RpcErrorCode[] values()
for (RpcErrorCode c : RpcErrorCode.values()) System.out.println(c);
public static RpcErrorCode valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getCode()
public void setCode(String code)
public String getMessage()
public void setMessage(String message)
Copyright © 2021. All rights reserved.