Class: Mongo::Error::TransactionsNotSupported
- Inherits:
-
Error
- Object
- Error
- Mongo::Error::TransactionsNotSupported
- Defined in:
- lib/mongo/error/transactions_not_supported.rb
Overview
Transactions are not supported by the cluster, e.g. if the topology is standalone.
Instance Method Summary collapse
-
#initialize(reason) ⇒ TransactionsNotSupported
constructor
A new instance of TransactionsNotSupported.
Constructor Details
#initialize(reason) ⇒ TransactionsNotSupported
Returns a new instance of TransactionsNotSupported.
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 |