Exception: Droonga::Searcher::InvalidAttribute

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(attribute) ⇒ InvalidAttribute

Returns a new instance of InvalidAttribute.



58
59
60
61
62
63
# File 'lib/droonga/searcher.rb', line 58

def initialize(attribute)
  detail = {
    "attribute" => attribute,
  }
  super("Invalid attribute: <#{attribute}>", detail)
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



57
58
59
# File 'lib/droonga/searcher.rb', line 57

def attribute
  @attribute
end