Exception: OnlinePayments::SDK::Webhooks::SignatureValidationException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- OnlinePayments::SDK::Webhooks::SignatureValidationException
- Defined in:
- lib/onlinepayments/sdk/webhooks/signature_validation_exception.rb
Overview
Raised when an error occurred when validating Webhooks signatures
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(args) ⇒ SignatureValidationException
constructor
Creates a new SignatureValidationException.
Constructor Details
#initialize(args) ⇒ SignatureValidationException
Creates a new SignatureValidationException
12 13 14 15 16 17 18 |
# File 'lib/onlinepayments/sdk/webhooks/signature_validation_exception.rb', line 12 def initialize(args) msg = args[:message] msg = args[:cause].to_s if msg.nil? && !args[:cause].nil? super(msg) # store backtrace info if exception given set_backtrace(args[:cause].backtrace) unless args[:cause].nil? end |