Exception: Mongoid::Errors::DocumentNotDestroyed
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::DocumentNotDestroyed
- Defined in:
- lib/mongoid/errors/document_not_destroyed.rb
Overview
Raised when attempting to destroy a document that had destroy callbacks return false.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(id, klass) ⇒ DocumentNotDestroyed
constructor
Instantiate the exception.
Methods inherited from MongoidError
Constructor Details
#initialize(id, klass) ⇒ DocumentNotDestroyed
Instantiate the exception.
18 19 20 |
# File 'lib/mongoid/errors/document_not_destroyed.rb', line 18 def initialize(id, klass) super(("document_not_destroyed", { id: id.inspect, klass: klass })) end |