Package com.rpl.agentorama
Class AgentFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.rpl.agentorama.AgentFailedException
- All Implemented Interfaces:
Serializable
Exception thrown when an agent execution fails.
This exception is thrown when an agent encounters an error during execution
and cannot complete its task. It wraps the underlying cause of the failure.
Example:
try {
String result = client.invoke("Hello world");
} catch (AgentFailedException e) {
System.err.println("Agent failed: " + e.getMessage());
e.getCause().printStackTrace();
}
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAgentFailedException(String message) Creates a new AgentFailedException with the specified message.AgentFailedException(String message, Throwable cause) Creates a new AgentFailedException with the specified message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AgentFailedException
Creates a new AgentFailedException with the specified message.- Parameters:
message- the detail message
-
AgentFailedException
Creates a new AgentFailedException with the specified message and cause.- Parameters:
message- the detail messagecause- the cause of the failure
-