Exception: Droonga::AddHandler::MissingPrimaryKeyParameter

Inherits:
BadRequest show all
Defined in:
lib/droonga/plugin/handler/add.rb

Constant Summary

Constants inherited from BadRequest

BadRequest::STATUS_CODE

Constants inherited from MessageProcessingError

MessageProcessingError::STATUS_CODE

Instance Attribute Summary

Attributes inherited from MessageProcessingError

#detail, #message

Instance Method Summary collapse

Methods inherited from MessageProcessingError

#name, #response_body, #status_code

Constructor Details

#initialize(table_name) ⇒ MissingPrimaryKeyParameter

Returns a new instance of MissingPrimaryKeyParameter.



34
35
36
37
# File 'lib/droonga/plugin/handler/add.rb', line 34

def initialize(table_name)
  super("\"key\" must be specified. " +
          "The table #{table_name.inspect} requires a primary key for a new record.")
end