Exception: Mongoid::Errors::DocumentNotDestroyed
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::DocumentNotDestroyed
- Defined in:
- build/mongoid-7.3/lib/mongoid/errors/document_not_destroyed.rb
Overview
Raised when attempting to destroy a document that had destory 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
Instnatiate the exception.
Methods inherited from MongoidError
Constructor Details
#initialize(id, klass) ⇒ DocumentNotDestroyed
Instnatiate the exception.
22 23 24 |
# File 'build/mongoid-7.3/lib/mongoid/errors/document_not_destroyed.rb', line 22 def initialize(id, klass) super(("document_not_destroyed", { id: id.inspect, klass: klass })) end |