Exception: NestedText::Errors::ParseLineTypeNotExpectedError

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

Returns a new instance of ParseLineTypeNotExpectedError.



136
137
138
# File 'lib/nestedtext/errors_internal.rb', line 136

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