Struct mongodb::coll::error::WriteException [] [src]

pub struct WriteException {
    pub write_concern_error: Option<WriteConcernError>,
    pub write_error: Option<WriteError>,
    pub message: String,
}

The error type for Write-related MongoDB operations.

Fields

Methods

impl WriteException
[src]

Returns a new WriteException containing the given errors.

Downgrades a BulkWriteException into a WriteException, retrieving the last write error to emulate the behavior of continue_on_error.

Validates a single-write result.

Trait Implementations

impl Debug for WriteException
[src]

Formats the value using the given formatter.

impl Clone for WriteException
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Error for WriteException
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Display for WriteException
[src]

Formats the value using the given formatter.