Exception: Groonga::Command::ParseError

Inherits:
Error
  • Object
show all
Defined in:
lib/groonga/command/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason, before, after) ⇒ ParseError

Returns a new instance of ParseError.



46
47
48
49
50
# File 'lib/groonga/command/parser.rb', line 46

def initialize(reason, before, after)
  @reason = reason
  @location = compute_location(before, after)
  super("#{@reason}:\n#{@location}")
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



45
46
47
# File 'lib/groonga/command/parser.rb', line 45

def location
  @location
end

#reasonObject (readonly)

Returns the value of attribute reason.



45
46
47
# File 'lib/groonga/command/parser.rb', line 45

def reason
  @reason
end