Exception: OnlinePayments::SDK::Webhooks::SecretKeyNotAvailableException
- Inherits:
-
SignatureValidationException
- Object
- RuntimeError
- SignatureValidationException
- OnlinePayments::SDK::Webhooks::SecretKeyNotAvailableException
- 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
-
#key_id ⇒ String
readonly
The current value of key_id.
Instance Method Summary collapse
-
#initialize(args) ⇒ SecretKeyNotAvailableException
constructor
A new instance of SecretKeyNotAvailableException.
Constructor Details
#initialize(args) ⇒ SecretKeyNotAvailableException
Returns a new instance of SecretKeyNotAvailableException.
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_id ⇒ String (readonly)
Returns 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 |