package cn.nianxx.thhotel.integrations.ai.superagent.service.impl;

import org.springframework.http.HttpStatus;

/**
 * SuperAgent 任务结果入站受控异常。只携带安全错误码和简短提示。
 */
public class SuperAgentTaskResultException extends RuntimeException {

    private final HttpStatus status;
    private final String errorCode;

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

    public HttpStatus getStatus() {
        return status;
    }

    public String getErrorCode() {
        return errorCode;
    }
}
