Excepción: Mongo::Error::SessionNotMaterialized
- Hereda:
-
InvalidSession
- Objeto
- StandardError
- Mongo::Error
- InvalidSession
- Mongo::Error::SessionNotMaterialized
- Definido en:
- lib/mongo/error/sesión_no_materializada.rb
Overview
Esta excepción se genera cuando se intenta usar una sesión, pero nunca se materializó.
Resumen constante
Constantes heredadas 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
Resumen del atributo de la instancia
Atributos incluidos de Notable
#id_global_de_conexión, #generación, #id_de_servicio
Resumen del método de instancia colapsar
-
#inicializar ⇒ Sesión no materializada
constructor
Una nueva instancia de SessionNotMaterialized.
Métodos heredados de Mongo::Error
¿#change_stream_resumable?, ¿#network_error?, ¿#write_concern_error_label?, #write_concern_error_labels
Métodos incluidos de ChangeStreamResumable
Métodos incluidos de WriteRetryable
Métodos incluidos de Labelable
#add_label, #etiqueta?, #etiquetas
Métodos incluidos de Notable
#agregar_nota, #agregar_notas, #notas, #a_s
Detalles del constructor
#initialize ⇒ SessionNotMaterialized
Devuelve una nueva instancia de SessionNotMaterialized.
24 25 26 |
# Archivo 'lib/mongo/error/session_not_materialized.rb', línea 24 def inicializar super("La sesión no se concretó y no puede ser utilizada. Utilice start_session o with_session para iniciar una sesión que se concretará.") end |