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(org.a2aproject.sdk.spec.A2AError error) Creates a JSONRPCException wrapping the specified error. -
Method Summary
Modifier and TypeMethodDescriptionorg.a2aproject.sdk.spec.A2AErrorgetError()Returns the wrapped JSON-RPC error.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JSONRPCException
public JSONRPCException(org.a2aproject.sdk.spec.A2AError error) Creates a JSONRPCException wrapping the specified error.- Parameters:
error- the JSON-RPC error
-
-
Method Details
-
getError
public org.a2aproject.sdk.spec.A2AError getError()Returns the wrapped JSON-RPC error.- Returns:
- the JSON-RPC error
-