异常:Mongo::Error::KmsError

继承:
CryptError 显示全部
定义于:
lib/mongo/error/kms_error.rb

Overview

客户端加密期间出现与 KMS 相关的错误。

由于:

  • 2.0.0

常量摘要

从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

实例方法摘要折叠

从Mongo::Error继承的方法

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

ChangeStreamResumable中包含的方法

#change_stream_resumable?

WriteRetryable 中包含的方法

#write_retryable?

Labelable 中包含的方法

#add_label , #label? , #labels

Notable中包含的方法

#add_note 、 #add_notes 、 #notes 、 #to_s

构造函数详情

#initialize (message, code: nil, network_error: nil) ⇒ KmsError

返回 KmsError 的新实例。

由于:

  • 2.0.0



21
22
23
24
# File 'lib/ Mongo/error/kms_error.rb', line 21

def 初始化(message, 代码: nil, network_error: nil)
  @network_error = network_error
  超(message, 代码: 代码)
end