Exception: JOR::DocumentNeedsId

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

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ DocumentNeedsId

Returns a new instance of DocumentNeedsId.



37
38
39
# File 'lib/jor/errors.rb', line 37

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