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.



196
197
198
199
200
# File 'lib/nestedtext/errors_internal.rb', line 196

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