class Mongoid::Errors::TransactionError
This error is raised when a transaction failed because of an unexpected error.
Public Class Methods
new(error)
click to toggle source
Creates the exception.
@param [ StandardError ] error Error that caused the
transaction failure.
Calls superclass method
# File lib/mongoid/errors/transaction_error.rb, line 15 def initialize(error) super( compose_message( 'transaction_error', { error: "#{error.class}: #{error.message}" } ) ) end