Exception: Worldline::Connect::SDK::Webhooks::SignatureValidationException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/worldline/connect/sdk/webhooks/signature_validation_exception.rb

Overview

Raised when an error occurred when validating Webhooks signatures

Direct Known Subclasses

SecretKeyNotAvailableException

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ SignatureValidationException

Creates a new SignatureValidationException

Parameters:

  • args (Hash)

    the options to create the Exception with

Options Hash (args):

  • :message (String)

    the error message

  • :cause (RuntimeError)

    an Error object that causes the Exception



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

def initialize(args)
  super(args[:message]) # NOTE: can be nil
  # store backtrace info if exception given
  set_backtrace(args[:cause].backtrace) unless args[:cause].nil?
end