Exception: Mongoid::Errors::TransactionError
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::TransactionError
- Defined in:
- lib/mongoid/errors/transaction_error.rb
Overview
This error is raised when a transaction failed because of an unexpected error.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(error) ⇒ TransactionError
constructor
Creates the exception.
Methods inherited from MongoidError
Constructor Details
#initialize(error) ⇒ TransactionError
Creates the exception.
15 16 17 18 19 20 21 22 |
# File 'lib/mongoid/errors/transaction_error.rb', line 15 def initialize(error) super( ( 'transaction_error', { error: "#{error.class}: #{error.}" } ) ) end |