Exception: Malt::Format::UnsupportedConversion

Inherits:
Exception
  • Object
show all
Defined in:
lib/malt/formats/abstract.rb

Overview

TODO: Is this needed anymore, if so where?

Instance Method Summary collapse

Constructor Details

#initialize(from_type, to_type) ⇒ UnsupportedConversion

Returns a new instance of UnsupportedConversion.



269
270
271
272
273
# File 'lib/malt/formats/abstract.rb', line 269

def initialize(from_type, to_type)
  @from_type = from_type
  @to_type   = to_type
  super()
end

Instance Method Details

#messageObject



274
275
276
# File 'lib/malt/formats/abstract.rb', line 274

def message
  "unsupported conversion: #{@from_type} -> #{@to_type}"
end