Exception: RadixEncoding::Encoding::AlphabetTooShortError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/radix_encoding/encoding/errors.rb

Instance Method Summary collapse

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