Exception: Crockford32::ChecksumError
- Inherits:
-
DecodeError
- Object
- StandardError
- Error
- DecodeError
- Crockford32::ChecksumError
- Defined in:
- lib/crockford32/errors.rb
Overview
An error representing a checksum mismatch between the decoded value and the supplied check symbol.
Instance Method Summary collapse
-
#initialize(value, checksum, checksum_required) ⇒ ChecksumError
constructor
A new instance of ChecksumError.
Constructor Details
#initialize(value, checksum, checksum_required) ⇒ ChecksumError
Returns a new instance of ChecksumError.
56 57 58 |
# File 'lib/crockford32/errors.rb', line 56 def initialize(value, checksum, checksum_required) super("Value #{value} has checksum #{checksum} but requires #{checksum_required}") end |