expose manifest-driven project knowledge through MCP
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package p.studio.api.automation;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/** Expected service failure, independent of the transport used by an automation client. */
|
||||
public final class AutomationException extends IllegalStateException {
|
||||
private final AutomationFailure failure;
|
||||
|
||||
public AutomationException(AutomationFailure.Code code, String message) {
|
||||
super(message);
|
||||
failure = new AutomationFailure(Objects.requireNonNull(code), message);
|
||||
}
|
||||
|
||||
public AutomationFailure failure() { return failure; }
|
||||
}
|
||||
Reference in New Issue
Block a user