Class: Mongo::Error::TransactionsNotSupported

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ TransactionsNotSupported

Returns a new instance of TransactionsNotSupported.

Since:

  • 2.7.0



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

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