package cn.nianxx.thhotel.workflows.reservation.service.impl;

import org.springframework.http.HttpStatus;

/**
 * Reservation AI 任务结果接收受控异常。用于业务接收阶段的安全错误响应。
 */
public class ReservationAiTaskIntakeException extends RuntimeException {

    private final HttpStatus status;
    private final String errorCode;

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

    public HttpStatus getStatus() {
        return status;
    }

    public String getErrorCode() {
        return errorCode;
    }
}
