public enum ErrorCode extends Enum<ErrorCode>
| 限定符和类型 | 方法和说明 |
|---|---|
Integer |
getCode() |
String |
getValue() |
static String |
getValueByCode(Integer code) |
static ErrorCode |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ErrorCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ErrorCode SessionExpired
public static final ErrorCode PermissionDenied
public static final ErrorCode NotExists
public static final ErrorCode InvalidArgument
public static final ErrorCode SpaceFull
public static final ErrorCode CustomMsg
public static final ErrorCode FnameConflict
public static final ErrorCode ServerError
public static final ErrorCode CodeParamFormatError
public static final ErrorCode CodeResourceNotFound
public static final ErrorCode CodeRemoteFai
public static final ErrorCode CodeAuthError
public static final ErrorCode Code400Begin
public static final ErrorCode CodeRemoteError
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public Integer getCode()
public String getValue()
Copyright © 2024. All rights reserved.