Package io.a2a.spec
Class JSONRPCError
java.lang.Object
java.lang.Throwable
java.lang.Error
io.a2a.spec.JSONRPCError
- All Implemented Interfaces:
A2AError,Event,Serializable
- Direct Known Subclasses:
AuthenticatedExtendedCardNotConfiguredError,ContentTypeNotSupportedError,InternalError,InvalidAgentResponseError,InvalidParamsError,InvalidRequestError,JSONParseError,MethodNotFoundError,PushNotificationNotSupportedError,TaskNotCancelableError,TaskNotFoundError,UnsupportedOperationError
Represents a JSON-RPC 2.0 Error object, included in an error response.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JSONRPCError
-
-
Method Details
-
getCode
Gets the error code- Returns:
- the error code
-
getData
Gets the data associated with the error.- Returns:
- the data. May be
null
-