Exception: Crockford32::LengthTooSmallError
- Inherits:
-
EncodeError
- Object
- StandardError
- Error
- EncodeError
- Crockford32::LengthTooSmallError
- Defined in:
- lib/crockford32/errors.rb
Overview
An error representing the length of an encoded value being larger than the requested maximum length.
Instance Method Summary collapse
-
#initialize(value, needed, given) ⇒ LengthTooSmallError
constructor
A new instance of LengthTooSmallError.
Constructor Details
#initialize(value, needed, given) ⇒ LengthTooSmallError
Returns a new instance of LengthTooSmallError.
19 20 21 |
# File 'lib/crockford32/errors.rb', line 19 def initialize(value, needed, given) super("Encoding #{value} requires a minimum length of #{needed}, but received #{given}") end |