Class: A2A::JSONRPCError
- Inherits:
-
ProtocolStruct
- Object
- Dry::Struct
- ProtocolStruct
- A2A::JSONRPCError
- Defined in:
- lib/a2a/types/jsonrpc_error.rb
Overview
Represents a JSON-RPC error object.
Direct Known Subclasses
InternalError, InvalidParamsError, InvalidRequestError, JSONParseError, MethodNotFoundError, PushNotificationNotSupportedError, TaskNotCancelableError, TaskNotFoundError, UnsupportedOperationError
Instance Method Summary collapse
-
#code ⇒ Integer
A number indicating the error type that occurred.
-
#data ⇒ Object?
Optional additional data about the error.
-
#message ⇒ String
A string providing a short description of the error.
Methods included from Extensions::CaseTransformation
Instance Method Details
#code ⇒ Integer
Returns A number indicating the error type that occurred.
7 |
# File 'lib/a2a/types/jsonrpc_error.rb', line 7 attribute :code, Types::Integer.constant(ErrorCodes::PARSE_ERROR) |
#data ⇒ Object?
Returns Optional additional data about the error.
13 |
# File 'lib/a2a/types/jsonrpc_error.rb', line 13 attribute? :data, Types::Nominal::Any.optional |
#message ⇒ String
Returns A string providing a short description of the error.
10 |
# File 'lib/a2a/types/jsonrpc_error.rb', line 10 attribute :message, Types::String.constant('Invalid JSON payload') |