Package cn.dev33.satoken.exception
Class NotPermissionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.dev33.satoken.exception.SaTokenException
cn.dev33.satoken.exception.NotPermissionException
- All Implemented Interfaces:
Serializable
一个异常:代表会话未能通过权限认证校验
- Since:
- 1.10.0
- Author:
- click33
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNotPermissionException(String permission) NotPermissionException(String permission, 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
-
NotPermissionException
-
NotPermissionException
-
-
Method Details
-
getPermission
- Returns:
- 获得具体缺少的权限码
-
getLoginType
获得账号类型- Returns:
- 账号类型
-