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

import org.springframework.http.HttpStatus;

/**
 * Debug EML 业务异常。HTTP 状态和错误码在 ControllerAdvice 中统一转换。
 */
public class DebugEmlSuperAgentException extends RuntimeException {

    private final HttpStatus status;
    private final String errorCode;

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

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

    public HttpStatus getStatus() {
        return status;
    }

    public String getErrorCode() {
        return errorCode;
    }
}
