Exception: SyntaxTree::Parser::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- SyntaxTree::Parser::ParseError
- Defined in:
- lib/syntax_tree/parser.rb
Overview
A special parser error so that we can get nice syntax displays on the error message when prettier prints out the results.
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#lineno ⇒ Object
readonly
Returns the value of attribute lineno.
Instance Method Summary collapse
-
#initialize(error, lineno, column) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(error, lineno, column) ⇒ ParseError
Returns a new instance of ParseError.
12 13 14 15 16 |
# File 'lib/syntax_tree/parser.rb', line 12 def initialize(error, lineno, column) super(error) @lineno = lineno @column = column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
10 11 12 |
# File 'lib/syntax_tree/parser.rb', line 10 def column @column end |
#lineno ⇒ Object (readonly)
Returns the value of attribute lineno.
10 11 12 |
# File 'lib/syntax_tree/parser.rb', line 10 def lineno @lineno end |