Exception: Groonga::Command::ParseError
- Defined in:
- lib/groonga/command/parser.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(reason, before, after) ⇒ ParseError
constructor
A new instance of ParseError.
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
#location ⇒ Object (readonly)
Returns the value of attribute location.
45 46 47 |
# File 'lib/groonga/command/parser.rb', line 45 def location @location end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
45 46 47 |
# File 'lib/groonga/command/parser.rb', line 45 def reason @reason end |