Exception: ToonFormat::ParseError
- Inherits:
-
DecodeError
- Object
- StandardError
- Error
- DecodeError
- ToonFormat::ParseError
- Defined in:
- lib/toon_format/errors.rb
Overview
Raised when parsing encounters syntax errors
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line_number ⇒ Object
readonly
Returns the value of attribute line_number.
Instance Method Summary collapse
-
#initialize(message, line: nil, column: nil) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(message, line: nil, column: nil) ⇒ ParseError
Returns a new instance of ParseError.
20 21 22 23 24 |
# File 'lib/toon_format/errors.rb', line 20 def initialize(, line: nil, column: nil) @line_number = line @column = column super(()) end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
18 19 20 |
# File 'lib/toon_format/errors.rb', line 18 def column @column end |
#line_number ⇒ Object (readonly)
Returns the value of attribute line_number.
18 19 20 |
# File 'lib/toon_format/errors.rb', line 18 def line_number @line_number end |