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.



152
153
154
155
156
# File 'lib/nestedtext/errors_internal.rb', line 152

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