Exception: RDF::ReaderError
- Defined in:
- vendor/bundler/ruby/3.3.0/bundler/gems/rdf-884e3ef78084/lib/rdf/reader.rb
Overview
The base class for RDF parsing errors.
Direct Known Subclasses
N3::Reader::SyntaxError, Tabular::Error, Turtle::Reader::SyntaxError
Instance Attribute Summary collapse
-
#lineno ⇒ Integer
readonly
The line number where the error occurred.
-
#token ⇒ String
readonly
The invalid token which triggered the error.
Instance Method Summary collapse
-
#initialize(message, token: nil, lineno: nil) ⇒ ReaderError
constructor
Initializes a new lexer error instance.
Constructor Details
#initialize(message, token: nil, lineno: nil) ⇒ ReaderError
Initializes a new lexer error instance.
714 715 716 717 718 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-884e3ef78084/lib/rdf/reader.rb', line 714 def initialize(, token: nil, lineno: nil) @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.
706 707 708 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-884e3ef78084/lib/rdf/reader.rb', line 706 def lineno @lineno end |
#token ⇒ String (readonly)
The invalid token which triggered the error.
700 701 702 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-884e3ef78084/lib/rdf/reader.rb', line 700 def token @token end |