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

Instance methods inherited from class Mongo::Error::Command

code : Int32 code, code_name : String | Nil code_name, details : BSON | Nil 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

Constructor methods inherited from class Mongo::Error::Command

new(code, code_name : Nil | String, message, details : BSON | Nil, *, 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) #

[View source]

Instance Method Detail

def details : BSON | Nil #

[View source]
def failed_or_timeout? #

[View source]
def max_time_ms_expired? #

[View source]
def shutdown_in_progress? #

[View source]
def unknown_repl? #

[View source]
def unsatisfiable? #

[View source]