Exception: MongoODM::Errors::DocumentNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mongo_odm/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(ids, klass) ⇒ DocumentNotFound

Returns a new instance of DocumentNotFound.



24
25
26
# File 'lib/mongo_odm/errors.rb', line 24

def initialize(ids, klass)
  super "can't find document for class #{klass} with id(s) #{ids}"
end