Class: A2A::JSONParseError

Inherits:
JSONRPCError
  • Object
show all
Defined in:
lib/a2a/types/json_parse_error.rb

Overview

Error for invalid JSON payload

Instance Method Summary collapse

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#codeInteger

Returns Error code (-32700).

Returns:

  • (Integer)

    Error code (-32700)



7
# File 'lib/a2a/types/json_parse_error.rb', line 7

attribute :code, Types::Integer.constant(ErrorCodes::PARSE_ERROR)

#dataObject?

Returns Additional error data.

Returns:

  • (Object, nil)

    Additional error data



13
# File 'lib/a2a/types/json_parse_error.rb', line 13

attribute? :data, Types::Nominal::Any.optional

#messageString

Returns Error message.

Returns:

  • (String)

    Error message



10
# File 'lib/a2a/types/json_parse_error.rb', line 10

attribute :message, Types::String.constant('Invalid JSON payload')