Exception: Buckaruby::SignatureException
- Inherits:
-
BuckarooException
- Object
- StandardError
- BuckarooException
- Buckaruby::SignatureException
- Defined in:
- lib/buckaruby/exception.rb
Overview
Exception raised when the signature could not be verified.
Instance Attribute Summary collapse
-
#generated_signature ⇒ Object
readonly
Returns the value of attribute generated_signature.
-
#sent_signature ⇒ Object
readonly
Returns the value of attribute sent_signature.
Instance Method Summary collapse
-
#initialize(sent_signature, generated_signature) ⇒ SignatureException
constructor
A new instance of SignatureException.
Constructor Details
#initialize(sent_signature, generated_signature) ⇒ SignatureException
Returns a new instance of SignatureException.
64 65 66 67 68 69 70 |
# File 'lib/buckaruby/exception.rb', line 64 def initialize(sent_signature, generated_signature) @sent_signature = sent_signature @generated_signature = generated_signature = "Sent signature (#{sent_signature}) doesn't match generated signature (#{generated_signature})" super() end |
Instance Attribute Details
#generated_signature ⇒ Object (readonly)
Returns the value of attribute generated_signature.
62 63 64 |
# File 'lib/buckaruby/exception.rb', line 62 def generated_signature @generated_signature end |
#sent_signature ⇒ Object (readonly)
Returns the value of attribute sent_signature.
62 63 64 |
# File 'lib/buckaruby/exception.rb', line 62 def sent_signature @sent_signature end |