Exception: Droonga::AddHandler::MissingPrimaryKeyParameter

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

Instance Attribute Summary

Attributes inherited from MessageProcessingError

#detail, #message

Instance Method Summary collapse

Methods inherited from BadRequest

#status_code

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