Exceção: Mongo::Error::OperationFailure

Herda:
Mongo::Erro
  • Objeto
mostrar tudo
Inclui:
família
Definido em:
lib/mongo/error/operation_failure.rb

Visão geral

Gerado quando uma operação falha por algum motivo.

Desde:

  • 2.0.0

Definido sob namespace

Módulos: família

Resumo constante

Constantes incluídas em Familiar

família::CHANGE_STREAM_RESUME_ERRORS, família::CHANGE_STREAM_RESUME_MSSAGES

Constantes incluídas de ReadWriteRetryable

ReadWriteRetryable::RETRY_messages, ReadWriteRetryable::WRITE_RETRY_ERRORS, ReadWriteRetryable::WRITE_RETRY_MSSAGES

Constantes incluídas de SdamErrorDetection

SdamErrorDetection::NODE_RECOVERING_CODES, SdamErrorDetection::NODE_SHUTTING_DOWN_CODES, SdamErrorDetection::NOT_MASTER_CODES

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 em Familiar

.

Atributos incluídos de Notável

#connection_global_id, # generação, #service_id

Resumo do método

Métodos incluídos da família

#change_stream_resumable?, #connection_description, #initialize, #max_time_ms_expired?, #unsupported_retryable_write?, #write_concern_error?, #wtimeout?

Métodos incluídos do ReadWriteRetryable

#retryable?, #write_retryable?

Métodos incluídos do SdamErrorDetection

#node_recovering?, #node_shutting_down?, #not_master?

Métodos herdados do Mongo::Error

#change_stream_resumable?, #initialize, #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