Module mungos::error

source ·
Expand description

Contains the Error and Result types that mongodb uses.

Structs

An error that occurred during a write operation consisting of multiple writes that wasn’t due to being unable to satisfy a write concern.
The set of errors that occurred during a write operation.
An error that occurred due to a database command failing.
An error that can occur in the mongodb crate. The inner ErrorKind is wrapped in an Arc to allow the errors to be cloned.
An error that occurred due to not being able to satisfy a write concern.
An error that occurred during a write operation that wasn’t due to being unable to satisfy a write concern.

Enums

The types of errors that can occur.
An error that occurred when trying to execute a write operation.

Constants

Retryable write error label. This label will be added to an error when the error is write-retryable.
Transient transaction error label. This label will be added to a network error or server selection error that occurs during a transaction.
Unknown transaction commit result error label. This label will be added to a server selection error, network error, write-retryable error, MaxTimeMSExpired error, or write concern failed/timeout during a commitTransaction.

Type Definitions

The result type for all methods that can return an error in the mongodb crate.