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
write_concern_error: Option<WriteConcernError>
write_error: Option<WriteError>
message: String
Methods
impl WriteException[src]
fn new(wc_err: Option<WriteConcernError>,
w_err: Option<WriteError>)
-> WriteException
w_err: Option<WriteError>)
-> WriteException
Returns a new WriteException containing the given errors.
fn with_bulk_exception(bulk_exception: BulkWriteException) -> WriteException
Downgrades a BulkWriteException into a WriteException, retrieving the last write error to emulate the behavior of continue_on_error.
fn validate_write_result(result: Document,
write_concern: WriteConcern)
-> Result<()>
write_concern: WriteConcern)
-> Result<()>
Validates a single-write result.
Trait Implementations
impl Debug for WriteException[src]
impl Clone for WriteException[src]
fn clone(&self) -> WriteException
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Error for WriteException[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more