class RDF::ReaderError

The base class for RDF parsing errors.

Attributes

lineno[R]

The line number where the error occurred.

@return [Integer]

token[R]

The invalid token which triggered the error.

@return [String]

Public Class Methods

new(message, options = {}) click to toggle source

Initializes a new lexer error instance.

@param [String, to_s] message @param [Hash{Symbol => Object}] options @option options [String] :token (nil) @option options [Integer] :lineno (nil)

Calls superclass method
# File lib/rdf/reader.rb, line 626
def initialize(message, options = {})
  @token      = options[:token]
  @lineno     = options[:lineno] || (@token.lineno if @token.respond_to?(:lineno))
  super(message.to_s)
end