Exception: NestedText::Errors::ParseError
- Inherits:
-
InternalError
- Object
- StandardError
- NestedText::Error
- InternalError
- NestedText::Errors::ParseError
- Defined in:
- lib/nestedtext/errors_internal.rb
Direct Known Subclasses
ParseCustomClassNoCreateMethodError, ParseCustomClassNotFoundError, ParseDictDuplicateKeyError, ParseInlineDictKeySyntaxError, ParseInlineDictSyntaxError, ParseInlineExtraCharactersAfterDelimiterError, ParseInlineListSyntaxError, ParseInlineMissingValueError, ParseInlineNoClosingDelimiterError, ParseInvalidIndentationCharError, ParseInvalidIndentationError, ParseLineTagNotDetectedError, ParseLineTagUnknownError, ParseLineTypeExpectedDictItemError, ParseLineTypeExpectedListItemError, ParseLineTypeNotExpectedError, ParseMultilineKeyNoValueError
Instance Attribute Summary collapse
-
#colno ⇒ Object
readonly
Returns the value of attribute colno.
-
#lineno ⇒ Object
readonly
Returns the value of attribute lineno.
-
#message_raw ⇒ Object
readonly
Returns the value of attribute message_raw.
Instance Method Summary collapse
-
#initialize(line, colno, message) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(line, colno, message) ⇒ ParseError
Returns a new instance of ParseError.
18 19 20 21 22 23 24 25 |
# File 'lib/nestedtext/errors_internal.rb', line 18 def initialize(line, colno, ) # Note, both line and column number are 0-indexed. # But for human display we make them 1-indexed. @lineno = line.lineno @colno = colno = super((line)) end |
Instance Attribute Details
#colno ⇒ Object (readonly)
Returns the value of attribute colno.
16 17 18 |
# File 'lib/nestedtext/errors_internal.rb', line 16 def colno @colno end |
#lineno ⇒ Object (readonly)
Returns the value of attribute lineno.
16 17 18 |
# File 'lib/nestedtext/errors_internal.rb', line 16 def lineno @lineno end |
#message_raw ⇒ Object (readonly)
Returns the value of attribute message_raw.
16 17 18 |
# File 'lib/nestedtext/errors_internal.rb', line 16 def end |