Exception: Droonga::Searcher::SyntaxError
- Inherits:
-
ErrorMessages::BadRequest
- Object
- StandardError
- Error
- ErrorMessage
- ErrorMessages::BadRequest
- Droonga::Searcher::SyntaxError
- Defined in:
- lib/droonga/searcher.rb
Constant Summary
Constants inherited from ErrorMessages::BadRequest
ErrorMessages::BadRequest::STATUS_CODE
Constants inherited from ErrorMessage
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#syntax ⇒ Object
readonly
Returns the value of attribute syntax.
Attributes inherited from ErrorMessage
Instance Method Summary collapse
-
#initialize(syntax, input) ⇒ SyntaxError
constructor
A new instance of SyntaxError.
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
#input ⇒ Object (readonly)
Returns the value of attribute input.
68 69 70 |
# File 'lib/droonga/searcher.rb', line 68 def input @input end |
#syntax ⇒ Object (readonly)
Returns the value of attribute syntax.
67 68 69 |
# File 'lib/droonga/searcher.rb', line 67 def syntax @syntax end |