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, token: nil, lineno: nil) click to toggle source

Initializes a new lexer error instance.

@param [String, to_s] message @param [String] token (nil) @param [Integer] lineno (nil)

Calls superclass method
# File lib/rdf/reader.rb, line 714
def initialize(message, token: nil, lineno: nil)
  @token      = token
  @lineno     = lineno || (token.lineno if token.respond_to?(:lineno))
  super(message.to_s)
end