package cn.nianxx.thhotel.platform.security.service.impl;

import org.springframework.http.HttpStatus;

/**
 * 管理后台鉴权受控异常。ControllerAdvice 负责转换为稳定 HTTP 响应。
 */
public class AdminAuthorizationException extends RuntimeException {

    private final HttpStatus status;
    private final String errorCode;

    public AdminAuthorizationException(HttpStatus status, String errorCode, String message) {
        super(message);
        this.status = status;
        this.errorCode = errorCode;
    }

    public HttpStatus getStatus() {
        return status;
    }

    public String getErrorCode() {
        return errorCode;
    }
}
