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
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class A2AError
getCode, getDetailsMethods inherited from class 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)
-