package cn.nianxx.thhotel.platform.hotel.service;

import org.springframework.http.HttpStatus;

/**
 * 酒店上下文解析受控异常。用于把 hotel_id 来源不明确、系统酒店未配置和用户无权限转换为安全错误。
 */
public class HotelContextException extends RuntimeException {

    private final HttpStatus status;
    private final String errorCode;

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

    public HttpStatus getStatus() {
        return status;
    }

    public String getErrorCode() {
        return errorCode;
    }
}
