Exception: RDF::Turtle::Reader::SyntaxError
- Inherits:
-
ReaderError
- Object
- IOError
- ReaderError
- RDF::Turtle::Reader::SyntaxError
- Defined in:
- vendor/bundler/ruby/3.3.0/bundler/gems/rdf-turtle-6506e92ccd8e/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.
811 812 813 814 815 816 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-turtle-6506e92ccd8e/lib/rdf/turtle/reader.rb', line 811 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.
801 802 803 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-turtle-6506e92ccd8e/lib/rdf/turtle/reader.rb', line 801 def lineno @lineno end |
#production ⇒ Symbol (readonly)
The current production.
789 790 791 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-turtle-6506e92ccd8e/lib/rdf/turtle/reader.rb', line 789 def production @production end |
#token ⇒ String (readonly)
The invalid token which triggered the error.
795 796 797 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-turtle-6506e92ccd8e/lib/rdf/turtle/reader.rb', line 795 def token @token end |