Exception: NestedText::Errors::LineTypeNotExpected

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, type_exps, type_act) ⇒ LineTypeNotExpected



141
142
143
# File 'lib/nestedtext/errors.rb', line 141

def initialize(line, type_exps, type_act)
  super(line, line.indentation, "The current line was detected to be #{type_act}, but we expected to see any of [#{type_exps.join(", ")}] here.")
end