Class: Confium::VerificationError
- Inherits:
-
Error
- Object
- Error
- Confium::VerificationError
- Defined in:
- lib/confium/errors/verification_error.rb
Overview
Raised when a signature / hash / proof fails to verify.
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
readonly
Returns the value of attribute algorithm.
-
#signer_index ⇒ Object
readonly
Returns the value of attribute signer_index.
Instance Method Summary collapse
-
#initialize(message = nil, details_hash = nil, **kwargs) ⇒ VerificationError
constructor
A new instance of VerificationError.
Constructor Details
#initialize(message = nil, details_hash = nil, **kwargs) ⇒ VerificationError
Returns a new instance of VerificationError.
7 8 9 10 11 12 |
# File 'lib/confium/errors/verification_error.rb', line 7 def initialize( = nil, details_hash = nil, **kwargs) , kwargs = Confium::Errors::Coerce.args(, details_hash, kwargs) @signer_index = kwargs.delete(:signer_index) @algorithm = kwargs.delete(:algorithm) super(, details: { signer_index: @signer_index, algorithm: @algorithm, **kwargs }) end |
Instance Attribute Details
#algorithm ⇒ Object (readonly)
Returns the value of attribute algorithm.
5 6 7 |
# File 'lib/confium/errors/verification_error.rb', line 5 def algorithm @algorithm end |
#signer_index ⇒ Object (readonly)
Returns the value of attribute signer_index.
5 6 7 |
# File 'lib/confium/errors/verification_error.rb', line 5 def signer_index @signer_index end |