Class VersionNotSupportedError

All Implemented Interfaces:
Serializable, Event

public class VersionNotSupportedError extends A2AProtocolError
A2A Protocol error indicating that the A2A protocol version specified in the request is not supported by the agent.

This error is returned when a client specifies a protocol version (via the A2A-Version service parameter) that the agent does not support. Agents should return this error when they cannot handle the requested protocol version.

Corresponds to A2A-specific error code -32009.

Usage example:

// In agent implementation
if (!isSupportedVersion(requestedVersion)) {
    throw new VersionNotSupportedError(null,
        "Protocol version " + requestedVersion + " is not supported", null);
}
See Also:
  • Constructor Details

    • VersionNotSupportedError

      public VersionNotSupportedError(@Nullable Integer code, @Nullable String message, @Nullable Map<String,Object> details)
      Constructs an error when the requested protocol version is not supported.
      Parameters:
      code - the error code (defaults to -32009 if null)
      message - the error message (defaults to standard message if null)
      details - additional error details (optional)