Class: A2A::AuthenticatedExtendedCardNotConfiguredError

Inherits:
JSONRPC::Error
  • Object
show all
Defined in:
lib/a2a/types/authenticated_extended_card_not_configured_error.rb

Overview

Error for missing authenticated extended card configuration (-32007)

Raised when the agent does not have an Authenticated Extended Card configured.

Examples:

Create an authenticated extended card not configured error

error = JSONRPC::AuthenticatedExtendedCardNotConfiguredError.new

Instance Method Summary collapse

Constructor Details

#initialize(message = 'Authenticated Extended Card not configured.', data: nil, request_id: nil) ⇒ AuthenticatedExtendedCardNotConfiguredError

Creates a new Authenticated Extended Card Not Configured Error with code -32007

Examples:

Create an authenticated extended card not configured error with default message

error = JSONRPC::AuthenticatedExtendedCardNotConfiguredError.new

Create an authenticated extended card not configured error with exception details

error = JSONRPC::AuthenticatedExtendedCardNotConfiguredError.new(
  data: { feature: 'extended_card' }, request_id: 1
)

Parameters:

  • message (String) (defaults to: 'Authenticated Extended Card not configured.')

    short description of the error

  • data (Hash, Array, String, Number, Boolean, nil) (defaults to: nil)

    additional error information

  • request_id (String, Integer, nil) (defaults to: nil)

    the request identifier



30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/a2a/types/authenticated_extended_card_not_configured_error.rb', line 30

def initialize(
  message = 'Authenticated Extended Card not configured.',
  data: nil,
  request_id: nil
)
  super(
    message,
    code: ErrorCodes::AUTHENTICATED_EXTENDED_CARD_NOT_CONFIGURED,
    data:,
    request_id:
  )
end