Exception: RadixEncoding::Encoding::AlphabetTooShortError
- Inherits:
-
StandardError
- Object
- StandardError
- RadixEncoding::Encoding::AlphabetTooShortError
- Defined in:
- lib/radix_encoding/encoding/errors.rb
Instance Method Summary collapse
-
#initialize(alphabet_bytesize:, radix:) ⇒ AlphabetTooShortError
constructor
A new instance of AlphabetTooShortError.
Constructor Details
#initialize(alphabet_bytesize:, radix:) ⇒ AlphabetTooShortError
Returns a new instance of AlphabetTooShortError.
6 7 8 9 10 11 |
# File 'lib/radix_encoding/encoding/errors.rb', line 6 def initialize(alphabet_bytesize:, radix:) super <<~MESSAGE The provided alphabet is too short. It has #{alphabet_bytesize} bytes, must have at least #{radix} bytes. MESSAGE end |