Exception: JOR::DocumentDoesNotNeedId

Inherits:
Error
  • Object
show all
Defined in:
lib/jor/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ DocumentDoesNotNeedId

Returns a new instance of DocumentDoesNotNeedId.



43
44
45
# File 'lib/jor/errors.rb', line 43

def initialize(name)
  super %(The collection #{name} is auto-incremental. You must not define the "_id" of the document")
end