Package org.a2aproject.sdk.server
Class JSONRPCException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.a2aproject.sdk.server.JSONRPCException
- All Implemented Interfaces:
Serializable
Exception wrapper for JSON-RPC protocol errors.
This exception encapsulates a A2AError for handling
protocol-level errors during JSON-RPC request processing.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJSONRPCException(A2AError error) Creates a JSONRPCException wrapping the specified error. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JSONRPCException
Creates a JSONRPCException wrapping the specified error.- Parameters:
error- the JSON-RPC error
-
-
Method Details
-
getError
Returns the wrapped JSON-RPC error.- Returns:
- the JSON-RPC error
-