异常:Mongo::Error::CryptError
- 继承:
-
Mongo::Error
- 对象
- StandardError
- Mongo::Error
- Mongo::Error::CryptError
- 定义于:
- lib/ Mongo/error/crypt_error.rb
Overview
与客户端加密相关的错误。
直接已知子类
常量摘要
从Mongo::Error继承的常量
BAD_VALUE、Code、CURSOR_NOT_FOUND、ERRMSG、TRANSIENT_TRANSACTION_ERROR_LABEL、UNKNOWN_ERROR、UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL、WRITE_CONCERN_ERROR、WRITE_CONCERN_ERRORS、WRITE_ERRORS
实例属性摘要
包含在Notable中的属性
#connection_global_id 、 #Generation 、 #service_id
实例方法摘要折叠
-
#initialize(message, code: nil) ⇒ CryptError
构造函数
创建一个新的 CryptError。
从Mongo::Error继承的方法
#change_stream_resumable? , #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
构造函数详情
#initialize(message, code: nil) ⇒ CryptError
创建一个新的 CryptError
25 26 27 28 29 |
# File 'lib/ Mongo/error/crypt_error.rb', line 25 def 初始化(, 代码: nil) msg = msg += " (libmongocrypt error code #{ code } ) " if 代码 超(msg) end |