Sha256: c808ba26cd7e2130a47d04d2b100f424d4eef94d702b150ee2fc3b5fd065af9c

Contents?: true

Size: 373 Bytes

Versions: 6

Compression:

Stored size: 373 Bytes

Contents

# frozen_string_literal: true

module Mongoid
module Orderable
module Errors
  class TransactionFailed < ::Mongoid::Errors::MongoidError
    def initialize(error)
      super _compose_message(error)
    end

    private

    def _compose_message(error)
      compose_message 'transaction_failed'
      @summary = error.message
    end
  end
end
end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mongoid_orderable-6.0.5 lib/mongoid/orderable/errors/transaction_failed.rb
mongoid_orderable-6.0.4 lib/mongoid/orderable/errors/transaction_failed.rb
mongoid_orderable-6.0.3 lib/mongoid/orderable/errors/transaction_failed.rb
mongoid_orderable-6.0.2 lib/mongoid/orderable/errors/transaction_failed.rb
mongoid_orderable-6.0.1 lib/mongoid/orderable/errors/transaction_failed.rb
mongoid_orderable-6.0.0 lib/mongoid/orderable/errors/transaction_failed.rb