Package cn.dev33.satoken.exception
Class NotRoleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.dev33.satoken.exception.SaTokenException
cn.dev33.satoken.exception.NotRoleException
- All Implemented Interfaces:
Serializable
一个异常:代表会话未能通过角色认证校验
- Since:
- 1.10.0
- Author:
- click33
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNotRoleException(String role) NotRoleException(String role, String loginType) -
Method Summary
Methods inherited from class cn.dev33.satoken.exception.SaTokenException
getCode, notEmpty, notEmpty, notTrue, notTrue, setCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NotRoleException
-
NotRoleException
-
-
Method Details
-
getRole
- Returns:
- 获得角色标识
-
getLoginType
获得账号类型- Returns:
- 账号类型
-