Exception: NestedText::Errors::LineTypeNotExpected
- Inherits:
-
ParseError
- Object
- StandardError
- NestedText::Error
- InternalError
- ParseError
- NestedText::Errors::LineTypeNotExpected
- Defined in:
- lib/nestedtext/errors.rb
Instance Attribute Summary
Attributes inherited from ParseError
Instance Method Summary collapse
-
#initialize(line, type_exps, type_act) ⇒ LineTypeNotExpected
constructor
A new instance of LineTypeNotExpected.
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 |