Exception: JOR::DocumentIdAlreadyExists

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

Instance Method Summary collapse

Constructor Details

#initialize(id, name) ⇒ DocumentIdAlreadyExists

Returns a new instance of DocumentIdAlreadyExists.



31
32
33
# File 'lib/jor/errors.rb', line 31

def initialize(id, name)
  super %(A document with _id #{id} already exists in collection "{name}")
end