Exception: NestedText::Errors::ParseCustomClassNoCreateMethod

Inherits:
ParseError show all
Defined in:
lib/nestedtext/errors.rb

Instance Attribute Summary

Attributes inherited from ParseError

#colno, #lineno, #message_raw

Instance Method Summary collapse

Constructor Details

#initialize(line, class_name) ⇒ ParseCustomClassNoCreateMethod

Returns a new instance of ParseCustomClassNoCreateMethod.



182
183
184
# File 'lib/nestedtext/errors.rb', line 182

def initialize(line, class_name)
  super(line, line.indentation, "Detected an encode custom class #{class_name} but it does not have a #nt_create method, so it can't be deserialzied.")
end