Package io.a2a.spec

Class JSONRPCError

All Implemented Interfaces:
A2AError, Event, Serializable
Direct Known Subclasses:
ContentTypeNotSupportedError, InternalError, InvalidAgentResponseError, InvalidParamsError, InvalidRequestError, JSONParseError, MethodNotFoundError, PushNotificationNotSupportedError, TaskNotCancelableError, TaskNotFoundError, UnsupportedOperationError

public class JSONRPCError extends Error implements Event, A2AError
Represents a JSONRPC error.
See Also:
  • Constructor Details

  • Method Details

    • getCode

      public Integer getCode()
      Gets the error code
      Returns:
      the error code
    • getData

      public Object getData()
      Gets the data associated with the error.
      Returns:
      the data. May be null