123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::TransactionsNotSupported

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error
Instance Chain:
self, Error
Inherits: Error
  • Object
Defined in: lib/mongo/error/transactions_not_supported.rb

Overview

Transactions are not supported by the cluster, e.g. if the topology is standalone.

Since:

  • 2.7.0

Class Method Summary

Constructor Details

.new(reason) ⇒ TransactionsNotSupported

Since:

  • 2.7.0

[ GitHub ]

  
# File 'lib/mongo/error/transactions_not_supported.rb', line 26

def initialize(reason)
  super("Transactions are not supported for the cluster: #{reason}")
end