Exception: NestedText::Errors::ParseCustomClassNoCreateMethodError

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

Instance Attribute Summary

Attributes inherited from ParseError

#colno, #lineno, #message_raw

Instance Method Summary collapse

Constructor Details

#initialize(line, class_name) ⇒ ParseCustomClassNoCreateMethodError

Returns a new instance of ParseCustomClassNoCreateMethodError.



176
177
178
# File 'lib/nestedtext/errors_internal.rb', line 176

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