Exception: Malt::Formats::UnsupportedConversion

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

Instance Method Summary collapse

Constructor Details

#initialize(from_type, to_type) ⇒ UnsupportedConversion

Returns a new instance of UnsupportedConversion.



183
184
185
186
187
# File 'lib/malt/formats/abstract.rb', line 183

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

Instance Method Details

#messageObject



188
189
190
# File 'lib/malt/formats/abstract.rb', line 188

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