Class NotLoginException

All Implemented Interfaces:
Serializable

public class NotLoginException extends SaTokenException
一个异常:代表会话未能通过登录认证校验
Since:
1.10.0
Author:
click33
See Also:
  • Field Details

  • Constructor Details

    • NotLoginException

      public NotLoginException(String message, String loginType, String type)
      构造方法创建一个
      Parameters:
      message - 异常消息
      loginType - 账号类型
      type - 类型
  • Method Details

    • getType

      public String getType()
      获取异常类型
      Returns:
      异常类型
    • getLoginType

      public String getLoginType()
      获得账号类型
      Returns:
      账号类型
    • newInstance

      public static NotLoginException newInstance(String loginType, String type, String message, String token)
      静态方法构建一个 NotLoginException
      Parameters:
      loginType - 账号类型
      type - 未登录场景值
      message - 异常描述信息
      token - 引起异常的 token 值,可不填,如果填了会拼接到异常描述信息后面
      Returns:
      构建完毕的异常对象