Exception: Multibases::MissingEncoding

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

Instance Method Summary collapse

Constructor Details

#initializeMissingEncoding

Returns a new instance of MissingEncoding.



33
34
35
36
37
38
39
40
# File 'lib/multibases/error.rb', line 33

def initialize
  super 'Can not convert from ByteArray to string without encoding. Pass ' \
        'the resulting string encoding as the first argument of to_s.' \
        "\n" \
        'This does not default to UTF-8 or US-ASCII because that would ' \
        'hide issues until you have output that is NOT encoding as UTF-8 ' \
        'or US-ASCII and does not fit in those ranges.'
end