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