AuthenticationException.java
441 Bytes
package com.xly.exception.dto;
import com.xly.constant.ErrorCode;
/***
* @Author 钱豹
* @Date 23:13 2026/1/30
* @Param
* @return
* @Description 认证异常
**/
public class AuthenticationException extends BaseException {
public AuthenticationException(ErrorCode errorCode) {
super(errorCode);
}
public AuthenticationException(String message) {
super(ErrorCode.UNAUTHORIZED.getCode(), message);
}
}