Exception: Multibases::AlphabetEncodingInvalid

Inherits:
Error
  • Object
show all
Defined in:
lib/multibases/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(encoding) ⇒ AlphabetEncodingInvalid

Returns a new instance of AlphabetEncodingInvalid.



24
25
26
27
28
29
# File 'lib/multibases/error.rb', line 24

def initialize(encoding)
  super(
    "The encoding '#{encoding}' is invalid for the given alphabet. " \
    'Supply an encoding that is valid for each character in the alphabet.'
  )
end