Exceção: Mongo::Error::TransactionsNotSupported

Herda:
Mongo::Erro
  • Objeto
mostrar tudo
Definido em:
lib/mongo/error/transactions_not_supported.rb

Visão geral

As transações não são suportadas pelo cluster. Pode haver os seguintes motivos:

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

Desde:

  • 2.7.0

Resumo constante

Constantes herdadas de Mongo::Error

BAD_VALUE, CODE, CURSOR_NOT_FOUND, ERR, ERRMSG, ERROR, TransIENT_TRANSACTION_ERROR_LAbel, UNKNOWN_ERROR, UNKNOWN_TRANSACTION_COMMIT_RESULT_LAbel, WRITE_CONCERN_ERROR, WRITE_CONCERN_ERRORS, WRITE_ERRORS

Resumo do atributo de instância

Atributos incluídos de Notável

#connection_global_id, # generação, #service_id

Recolhimento do Resumo do método de instância

Métodos herdados do Mongo::Error

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

Métodos incluídos do ChangeStreamResumable

#change_stream_resumable?

Métodos incluídos do WriteRetryable

#write_retryable?

Métodos incluídos do Labelable

#add_label, #label?, #labels

Métodos incluídos do Notable

#add_note, #add_notes, #notes, #to_s

Detalhes do construtor

#initialize(reason) ➤ TransactionsNotSupported

Retorna uma nova instância de TransactionsNotSupported.

Desde:

  • 2.7.0



29
30
31
# File 'lib/mongo/error/transactions_not_supported.rb', linha 29

def inicializar(Razão)
  super("As transações não são suportadas para o cluster: #{razão}")
end