Exception: NestedText::Errors::WrongInputTypeError

Inherits:
InternalError show all
Defined in:
lib/nestedtext/errors_internal.rb

Instance Method Summary collapse

Constructor Details

#initialize(class_exps, class_act) ⇒ WrongInputTypeError

Returns a new instance of WrongInputTypeError.



263
264
265
266
# File 'lib/nestedtext/errors_internal.rb', line 263

def initialize(class_exps, class_act)
  super("The given input type #{class_act.class.name} is unsupported. " \
        "Expected to be of types #{class_exps.map(&:name).join(', ')}")
end