public enum ExceptionRsType extends Enum<ExceptionRsType>
鉴权异常返回枚举
| 枚举常量和说明 |
|---|
INVALID_AUTHENTICATION
无效TOKEN
|
NOT_LOGGED_IN
用户未登录
|
PERMISSION_DENIED
权限被拒绝
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCode() |
String |
getMsg() |
void |
setCode(String code) |
void |
setMsg(String msg) |
static ExceptionRsType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ExceptionRsType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ExceptionRsType NOT_LOGGED_IN
public static final ExceptionRsType INVALID_AUTHENTICATION
public static final ExceptionRsType PERMISSION_DENIED
public static ExceptionRsType[] values()
for (ExceptionRsType c : ExceptionRsType.values()) System.out.println(c);
public static ExceptionRsType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getMsg()
public void setMsg(String msg)
public String getCode()
public void setCode(String code)
Copyright © 2020–2022 structure. All rights reserved.