Package app.ductape.sdk.agents
Class AgentError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
app.ductape.sdk.agents.AgentError
- All Implemented Interfaces:
DuctapeError,Serializable
TS parity: sdk/ts/src/agents/agents.service.ts
AgentError- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Stable machine-readable code, suitable for logs and API envelopes.static AgentErrorconfigurationError(String message) details()Optional structured details; implementations may return an empty map.static AgentErrorexecutionError(String message, Map<String, Object> details) static AgentErrornotFoundError(String message) static AgentErrorvalidationError(String message) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AgentError
-
AgentError
-
-
Method Details
-
code
Description copied from interface:DuctapeErrorStable machine-readable code, suitable for logs and API envelopes.- Specified by:
codein interfaceDuctapeError
-
details
Description copied from interface:DuctapeErrorOptional structured details; implementations may return an empty map.- Specified by:
detailsin interfaceDuctapeError
-
configurationError
-
validationError
-
notFoundError
-
executionError
-