예외: Mongo::Error::TransactionsNotSupported

상속:
Mongo::Error
  • 객체
모두 표시
다음에 정의됨:
lib/ Mongo/error/transactions_not_supported.rb

개요

트랜잭션은 클러스터 에서 지원되지 않습니다. 다음과 같은 이유가 있을 수 있습니다.

- 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_밸류, 코드, CURSOR_NOT_FOUND, ERR, ERRMSG, ERROR, TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_ERROR, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL, WRITE_CONCERN_CONCERN_ERROR, WRITE_CONCERN_CONCERN_WRITE

인스턴스 속성 요약

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

생성자 세부 정보

#initialize(reason) ⇒ TransactionsNotSupported

TransactionsNotSupported의 새 인스턴스 반환합니다.

이후:

  • 2.7.0

[소스 보기]

29
30
31
# 파일 'lib/ Mongo/error/transactions_not_supported.rb', 줄 29

def 초기화(이유)
  super("트랜잭션은 클러스터 에 대해 지원되지 않습니다: #{이유}")
end