package com.erp.ai.exception; /** * OpenClaw 외부 엔진 호출 실패 시 발생하는 예외. * enabled=false 이거나 HTTP 에러 발생 시 graceful 처리용. */ public class OpenClawException extends RuntimeException { private final int statusCode; public OpenClawException(String message) { super(message); this.statusCode = 503; } public OpenClawException(String message, int statusCode) { super(message); this.statusCode = statusCode; } public OpenClawException(String message, Throwable cause) { super(message, cause); this.statusCode = 503; } public int getStatusCode() { return statusCode; } }