Exception: NestedText::Errors::ParseLineTagUnknownError

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, tag) ⇒ ParseLineTagUnknownError

Returns a new instance of ParseLineTagUnknownError.



72
73
74
# File 'lib/nestedtext/errors_internal.rb', line 72

def initialize(line, tag)
  super(line, line.indentation, "The Line tag #{tag} is not among the allowed ones #{Line::ALLOWED_LINE_TAGS}")
end