class RDF::N3::Reader::SyntaxError
Attributes
lineno[R]
The line number where the error occurred.
@return [Integer]
production[R]
The current production.
@return [Symbol]
token[R]
The invalid token which triggered the error.
@return [String]
Public Class Methods
new(message, **options)
click to toggle source
Initializes a new syntax error instance.
@param [String, to_s] message @param [Hash{Symbol => Object}] options @option options [Symbol] :production (nil) @option options [String] :token (nil) @option options [Integer] :lineno (nil)
Calls superclass method
# File lib/rdf/n3/reader.rb, line 977 def initialize(message, **options) @production = options[:production] @token = options[:token] @lineno = options[:lineno] || (@token.lineno if @token.respond_to?(:lineno)) super(message.to_s) end