Exception: Worldline::Connect::SDK::Webhooks::SecretKeyNotAvailableException

Inherits:
SignatureValidationException show all
Defined in:
lib/worldline/connect/sdk/webhooks/secret_key_not_available_exception.rb

Overview

Raised when an error caused a secret to become not available.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ SecretKeyNotAvailableException

Returns a new instance of SecretKeyNotAvailableException.

Raises:

  • (ArgumentError)


12
13
14
15
16
# File 'lib/worldline/connect/sdk/webhooks/secret_key_not_available_exception.rb', line 12

def initialize(args)
  raise ArgumentError if (key_id = args.delete(:key_id)).nil? # key_id is mandatory
  super(args)
  @key_id = key_id
end

Instance Attribute Details

#key_idString (readonly)

Returns the current value of key_id.

Returns:

  • (String)

    the current value of key_id



10
11
12
# File 'lib/worldline/connect/sdk/webhooks/secret_key_not_available_exception.rb', line 10

def key_id
  @key_id
end