io.github.dengchen2020.security.exception.SessionTimeOutException Maven / Gradle / Ivy
package io.github.dengchen2020.security.exception;
import io.github.dengchen2020.core.exception.BaseException;
/**
* 登录会话超时异常:前端需跳转登录
*
* @author dengchen
* @since 2022/07/09 14:11
*/
public class SessionTimeOutException extends BaseException {
public static final Integer CODE = 401;
public static final String DEFAULT_MESSAGE = "会话超时,请重新登录";
public SessionTimeOutException(String message) {
super(message, CODE);
}
public SessionTimeOutException() {
super(DEFAULT_MESSAGE, CODE);
}
}