Class A2AProtocolError

All Implemented Interfaces:
Serializable, Event
Direct Known Subclasses:
ContentTypeNotSupportedError, ExtendedAgentCardNotConfiguredError, ExtensionSupportRequiredError, InvalidAgentResponseError, PushNotificationNotSupportedError, TaskNotCancelableError, TaskNotFoundError, UnsupportedOperationError, VersionNotSupportedError

public class A2AProtocolError extends A2AError
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.

See Also:
  • Constructor Details

    • A2AProtocolError

      public A2AProtocolError(Integer code, String message, @Nullable Map<String,Object> details)
      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)