Exception: RadixEncoding::Encoding::DataTypeNotSupportedError

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

Instance Method Summary collapse

Constructor Details

#initialize(data_type:) ⇒ DataTypeNotSupportedError

Returns a new instance of DataTypeNotSupportedError.



15
16
17
18
19
20
# File 'lib/radix_encoding/encoding/errors.rb', line 15

def initialize(data_type:)
  super <<~MESSAGE
    The provided data is of a not supported type #{data_type}. Only
    String is supported.
  MESSAGE
end