class Mongo::Error::WriteConcern
Overview
Is raised when the server replies to a write with a WriteConcernError.
Defined in:
cryomongo/error.cr
Constructors
Instance Method Summary
code : Int32
code,
code_name : String?
code_name,
details : BSON?
details,
max_time_ms_expired?
max_time_ms_expired?,
not_master?
not_master?,
recovering?
recovering?,
resumable?
resumable?,
retryable_code?
retryable_code?,
shutdown?
shutdown?,
state_change?
state_change?,
to_s(io : IO)
to_s
new(code, code_name : String?, message, details : BSON?, *, error_labels = Set(String).new)
new
Instance methods inherited from class Mongo::Error
add_error_label(label : String) : Nil
add_error_label,
add_retryable_label(wire_version : Int32)
add_retryable_label,
add_transient_transaction_label
add_transient_transaction_label,
add_unknown_transaction_label
add_unknown_transaction_label,
error_labels : Set(String)
error_labels,
has_error_label?(label : String) : Bool
has_error_label?,
retryable_read?
retryable_read?,
retryable_write?
retryable_write?,
transient_transaction?
transient_transaction?,
unknown_transaction?
unknown_transaction?
Constructor Detail
def self.
new(error : BSON)
#
Instance Method Detail
def
max_time_ms_expired?
#
def
shutdown_in_progress?
#