Exception: RDF::ReaderError
- Inherits:
-
IOError
- Object
- IOError
- RDF::ReaderError
- Defined in:
- lib/rdf/reader.rb
Overview
The base class for RDF parsing errors.
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 '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 'lib/rdf/reader.rb', line 706 def lineno @lineno end |
#token ⇒ String (readonly)
The invalid token which triggered the error.
700 701 702 |
# File 'lib/rdf/reader.rb', line 700 def token @token end |