Exception: SPARQL::Grammar::Lexer::Error
- Inherits:
-
StandardError
- Object
- StandardError
- SPARQL::Grammar::Lexer::Error
- Defined in:
- lib/sparql/grammar/lexer.rb
Overview
Raised for errors during lexical analysis.
Instance Attribute Summary (collapse)
-
- (String) input
readonly
The input string associated with the error.
-
- (Integer) lineno
readonly
The line number where the error occurred.
-
- (String) token
readonly
The invalid token which triggered the error.
Instance Method Summary (collapse)
-
- (Error) initialize(message, options = {})
constructor
Initializes a new lexer error instance.
Constructor Details
- (Error) initialize(message, options = {})
Initializes a new lexer error instance.
599 600 601 602 603 604 |
# File 'lib/sparql/grammar/lexer.rb', line 599 def initialize(, = {}) @input = [:input] @token = [:token] @lineno = [:lineno] super(.to_s) end |
Instance Attribute Details
- (String) input (readonly)
The input string associated with the error.
577 578 579 |
# File 'lib/sparql/grammar/lexer.rb', line 577 def input @input end |
- (Integer) lineno (readonly)
The line number where the error occurred.
589 590 591 |
# File 'lib/sparql/grammar/lexer.rb', line 589 def lineno @lineno end |
- (String) token (readonly)
The invalid token which triggered the error.
583 584 585 |
# File 'lib/sparql/grammar/lexer.rb', line 583 def token @token end |