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, options = {}) ⇒ ReaderError
constructor
Initializes a new lexer error instance.
Constructor Details
#initialize(message, options = {}) ⇒ ReaderError
Initializes a new lexer error instance.
626 627 628 629 630 |
# File 'lib/rdf/reader.rb', line 626 def initialize(, = {}) @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.
617 618 619 |
# File 'lib/rdf/reader.rb', line 617 def lineno @lineno end |
#token ⇒ String (readonly)
The invalid token which triggered the error.
611 612 613 |
# File 'lib/rdf/reader.rb', line 611 def token @token end |