Class: A2A::JSONParseError
- Inherits:
-
JSONRPCError
- Object
- Dry::Struct
- ProtocolStruct
- JSONRPCError
- A2A::JSONParseError
- Defined in:
- lib/a2a/types/json_parse_error.rb
Overview
Error for invalid JSON payload
Instance Method Summary collapse
-
#code ⇒ Integer
Error code (-32700).
-
#data ⇒ Object?
Additional error data.
-
#message ⇒ String
Error message.
Methods included from Extensions::CaseTransformation
Instance Method Details
#code ⇒ Integer
Returns Error code (-32700).
7 |
# File 'lib/a2a/types/json_parse_error.rb', line 7 attribute :code, Types::Integer.constant(ErrorCodes::PARSE_ERROR) |
#data ⇒ Object?
Returns Additional error data.
13 |
# File 'lib/a2a/types/json_parse_error.rb', line 13 attribute? :data, Types::Nominal::Any.optional |
#message ⇒ String
Returns Error message.
10 |
# File 'lib/a2a/types/json_parse_error.rb', line 10 attribute :message, Types::String.constant('Invalid JSON payload') |