Exception: RDF::Turtle::Reader::SyntaxError
- Inherits:
-
ReaderError
- Object
- IOError
- ReaderError
- RDF::Turtle::Reader::SyntaxError
- Defined in:
- vendor/bundler/ruby/3.2.0/bundler/gems/rdf-turtle-1068d277401e/lib/rdf/turtle/reader.rb
Instance Attribute Summary collapse
-
#lineno ⇒ Integer
readonly
The line number where the error occurred.
-
#production ⇒ Symbol
readonly
The current production.
-
#token ⇒ String
readonly
The invalid token which triggered the error.
Instance Method Summary collapse
-
#initialize(message, **options) ⇒ SyntaxError
constructor
Initializes a new syntax error instance.
Constructor Details
#initialize(message, **options) ⇒ SyntaxError
Initializes a new syntax error instance.
690 691 692 693 694 695 |
# File 'vendor/bundler/ruby/3.2.0/bundler/gems/rdf-turtle-1068d277401e/lib/rdf/turtle/reader.rb', line 690 def initialize(, **) @production = [:production] @token = [:token] @lineno = [:lineno] || (@token.lineno if @token.respond_to?(:lineno)) super(.to_s) end |
Instance Attribute Details
#lineno ⇒ Integer (readonly)
The line number where the error occurred.
680 681 682 |
# File 'vendor/bundler/ruby/3.2.0/bundler/gems/rdf-turtle-1068d277401e/lib/rdf/turtle/reader.rb', line 680 def lineno @lineno end |
#production ⇒ Symbol (readonly)
The current production.
668 669 670 |
# File 'vendor/bundler/ruby/3.2.0/bundler/gems/rdf-turtle-1068d277401e/lib/rdf/turtle/reader.rb', line 668 def production @production end |
#token ⇒ String (readonly)
The invalid token which triggered the error.
674 675 676 |
# File 'vendor/bundler/ruby/3.2.0/bundler/gems/rdf-turtle-1068d277401e/lib/rdf/turtle/reader.rb', line 674 def token @token end |