Package org.a2aproject.sdk.spec
Class A2AProtocolError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.a2aproject.sdk.spec.A2AError
org.a2aproject.sdk.spec.A2AProtocolError
- All Implemented Interfaces:
Serializable,Event
- Direct Known Subclasses:
ContentTypeNotSupportedError,ExtendedAgentCardNotConfiguredError,ExtensionSupportRequiredError,InvalidAgentResponseError,PushNotificationNotSupportedError,TaskNotCancelableError,TaskNotFoundError,UnsupportedOperationError,VersionNotSupportedError
Represents a protocol-level error in the A2A Protocol.
This error extends A2AError to distinguish A2A protocol-specific errors
from standard JSON-RPC errors. Protocol errors have dedicated error codes in the
A2A specification.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.a2aproject.sdk.spec.A2AError
getCode, getDetailsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
A2AProtocolError
Constructs a protocol error with the specified code, message, and details.- Parameters:
code- the numeric error code (required, see JSON-RPC 2.0 spec for standard codes)message- the human-readable error message (required)details- additional error details as key-value pairs (defaults to empty map if null)
-