异常:Mongo::Error::OperationFailure
- 继承:
-
Mongo::Error
- 对象
- StandardError
- Mongo::Error
- Mongo::Error::OperationFailure
- 包括:
- 家庭情况
- 定义于:
- lib/ Mongo/error/operation_failure.rb
Overview
当操作由于某种原因失败时触发。
在命名空间下定义
模块: 家庭情况
常量摘要
系列中包含的常量
系列::CHANGE_STREAM_RESUME_ERRORS 、系列::CHANGE_STREAM_RESUME_MESSAGES
ReadWriteRetryable中包含的常量
ReadWriteRetryable::RETRY_MESSAGES 、 ReadWriteRetryable::WRITE_RETRY_ERRORS 、 ReadWriteRetryable::WRITE_RETRY_MESSAGES
SdamErrorDetection 中包含的常量
SdamErrorDetection::NODE_RECOVERING_CodeS 、 SdamErrorDetection::NODE_SHUTTING_down_CodeS 、 SdamErrorDetection::NOT_MASTER_CodeS
从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
实例属性摘要
族中包含的属性
#code , #code_name , #details , # 文档 , #result , #server_message , #write_concern_error_code , #write_concern_error_code_name , #write_concern_error_document
包含在Notable中的属性
#connection_global_id 、 #Generation 、 #service_id
方法摘要
系列中包含的方法
#change_stream_resumable? 、#connection_description、#initialize、#max_time_ms_expired? , #unsupported_retryable_write? , #write_concern_error? ,#wtimeout?
ReadWriteRetryable中包含的方法
#retryable? , #write_retryable?
SdamErrorDetection 中包含的方法
#node_recovering? , #node_shutting_down? , #not_master?
从Mongo::Error继承的方法
#change_stream_resumable? 、#initialize 、#network_error? , #write_concern_error_label? , #write_concern_error_labels
ChangeStreamResumable中包含的方法
WriteRetryable 中包含的方法
Labelable 中包含的方法
#add_label , #label? , #labels
Notable中包含的方法
#add_note 、 #add_notes 、 #notes 、 #to_s