class Mongo::Error::WriteConcern


Is raised when the server replies to a write with a WriteConcernError.

Defined in:



Instance Method Summary

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

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

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

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 : BSON) #

Instance Method Detail

def details : BSON? #

def failed_or_timeout? #

def max_time_ms_expired? #

def shutdown_in_progress? #

def unknown_repl? #

def unsatisfiable? #