Exception: StraddlePay::SignatureVerificationError

Inherits:
Error
  • Object
show all
Defined in:
lib/straddle_pay/errors.rb

Overview

Raised when webhook signature verification fails.

Instance Attribute Summary collapse

Attributes inherited from Error

#body, #error_items, #error_type, #status

Instance Method Summary collapse

Constructor Details

#initialize(message, sig_header: nil) ⇒ SignatureVerificationError

Returns a new instance of SignatureVerificationError.



54
55
56
57
# File 'lib/straddle_pay/errors.rb', line 54

def initialize(message, sig_header: nil, **)
  super(message, **)
  @sig_header = sig_header
end

Instance Attribute Details

#sig_headerString? (readonly)

Returns the signature header that failed verification.

Returns:

  • (String, nil)

    the signature header that failed verification



52
53
54
# File 'lib/straddle_pay/errors.rb', line 52

def sig_header
  @sig_header
end