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

/**
 * MCP submit payload 校验异常。只暴露字段和安全摘要，不包含邮件正文、附件 URL 或 Secret。
 */
public class SuperAgentMcpSubmitPayloadException extends RuntimeException {

    private final String errorCode;
    private final String field;

    /**
     * 构造 MCP submit payload 校验异常。
     */
    public SuperAgentMcpSubmitPayloadException(String errorCode, String message, String field) {
        super(message);
        this.errorCode = errorCode;
        this.field = field;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public String getField() {
        return field;
    }
}
