Exception: OnlinePayments::SDK::Webhooks::SecretKeyNotAvailableException

Inherits:
SignatureValidationException show all
Defined in:
lib/onlinepayments/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)


8
9
10
11
12
# File 'lib/onlinepayments/sdk/webhooks/secret_key_not_available_exception.rb', line 8

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



6
7
8
# File 'lib/onlinepayments/sdk/webhooks/secret_key_not_available_exception.rb', line 6

def key_id
  @key_id
end