Class: A2A::JSONRPCError

Inherits:
ProtocolStruct
  • Object
show all
Defined in:
lib/a2a/types/jsonrpc_error.rb

Overview

Represents a JSON-RPC error object.

Instance Method Summary collapse

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#codeInteger

Returns A number indicating the error type that occurred.

Returns:

  • (Integer)

    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)

#dataObject?

Returns Optional additional data about the error.

Returns:

  • (Object, nil)

    Optional additional data about the error.



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

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

#messageString

Returns A string providing a short description of the error.

Returns:

  • (String)

    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')