Exception: Droonga::Searcher::SyntaxError

Inherits:
ErrorMessages::BadRequest show all
Defined in:
lib/droonga/searcher.rb

Constant Summary

Constants inherited from ErrorMessages::BadRequest

ErrorMessages::BadRequest::STATUS_CODE

Constants inherited from ErrorMessage

ErrorMessage::STATUS_CODE

Instance Attribute Summary collapse

Attributes inherited from ErrorMessage

#detail

Instance Method Summary collapse

Methods inherited from ErrorMessage

#name, #response_body, #status_code

Constructor Details

#initialize(syntax, input) ⇒ SyntaxError

Returns a new instance of SyntaxError.



69
70
71
72
73
74
75
# File 'lib/droonga/searcher.rb', line 69

def initialize(syntax, input)
  detail = {
    "syntax" => syntax,
    "input" => input,
  }
  super("Syntax error: syntax:<#{syntax}> input:<#{input}>", detail)
end

Instance Attribute Details

#inputObject (readonly)

Returns the value of attribute input.



68
69
70
# File 'lib/droonga/searcher.rb', line 68

def input
  @input
end

#syntaxObject (readonly)

Returns the value of attribute syntax.



67
68
69
# File 'lib/droonga/searcher.rb', line 67

def syntax
  @syntax
end