Exception: Aura::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- Aura::ParseError
- Defined in:
- lib/aura/diagnostics.rb,
lib/aura.rb
Overview
Raised when source text cannot be parsed. Carries the line/column of the failure plus a rendered snippet with a caret, so users get a real diagnostic instead of a raw Parslet backtrace.
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
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.
10 11 12 13 14 |
# File 'lib/aura/diagnostics.rb', line 10 def initialize(, line: nil, column: nil) @line = line @column = column super() end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
8 9 10 |
# File 'lib/aura/diagnostics.rb', line 8 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
8 9 10 |
# File 'lib/aura/diagnostics.rb', line 8 def line @line end |