异常:Mongo::Error::TransactionsNotSupported

继承:
Mongo::Error
  • 对象
显示全部
定义于:
lib/ Mongo/error/transactions_not_supported.rb

Overview

集群不支持事务。 可能有以下原因:

- topology is standalone
- topology is replica set and server version is < 4.0
- topology is sharded and server version is < 4.2

由于:

  • 2.7.0

常量摘要

Mongo::Error继承的常量

BAD_VALUECodeCURSOR_NOT_FOUNDERRERRMSGERRORTRANSIENT_TRANSACTION_ERROR_LABELUNKNOWN_ERRORUNKNOWN_TRANSACTION_COMMIT_RESULT_LABELWRITE_CONCERN_ERRORWRITE_CONCERN_ERRORSWRITE_ERRORS

实例属性摘要

包含在Notable中的属性

#connection_global_id#Generation#service_id

实例方法摘要折叠

Mongo::Error继承的方法

#change_stream_resumable? , #network_error? , #write_concern_error_label? , #write_concern_error_labels

ChangeStreamResumable中包含的方法

#change_stream_resumable?

WriteRetryable 中包含的方法

#write_retryable?

Labelable 中包含的方法

#add_label , #label? , #labels

Notable中包含的方法

#add_note#add_notes#notes#to_s

构造函数详情

# 初始化(原因) TransactionsNotSupported

返回 TransactionsNotSupported 的新实例。

由于:

  • 2.7.0



29
30
31
# File 'lib/ Mongo/error/transactions_not_supported.rb', line 29

def 初始化(原因)
  ("集群不支持事务:#{ Reason } ")
end