Exception: NakoPay::SignatureVerificationError

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

Overview

Raised by Webhook.construct_event when verification fails.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code: nil) ⇒ SignatureVerificationError

Returns a new instance of SignatureVerificationError.



59
60
61
62
# File 'lib/nakopay/errors.rb', line 59

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



57
58
59
# File 'lib/nakopay/errors.rb', line 57

def code
  @code
end