Table of Contents

Class MongoBulkWriteException

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Represents a bulk write exception.

[Serializable]
public abstract class MongoBulkWriteException : MongoServerException, ISerializable
Inheritance
MongoBulkWriteException
Implements
Derived
Inherited Members

Constructors

MongoBulkWriteException(ConnectionId, IEnumerable<BulkWriteError>, WriteConcernError)

Initializes a new instance of the MongoBulkWriteException class.

public MongoBulkWriteException(ConnectionId connectionId, IEnumerable<BulkWriteError> writeErrors, WriteConcernError writeConcernError)

Parameters

connectionId ConnectionId

The connection identifier.

writeErrors IEnumerable<BulkWriteError>

The write errors.

writeConcernError WriteConcernError

The write concern error.

MongoBulkWriteException(SerializationInfo, StreamingContext)

Initializes a new instance of the MongoQueryException class (this overload supports deserialization).

public MongoBulkWriteException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo.

context StreamingContext

The StreamingContext.

Properties

WriteConcernError

Gets the write concern error.

public WriteConcernError WriteConcernError { get; }

Property Value

WriteConcernError

WriteErrors

Gets the write errors.

public IReadOnlyList<BulkWriteError> WriteErrors { get; }

Property Value

IReadOnlyList<BulkWriteError>

Methods

GetObjectData(SerializationInfo, StreamingContext)

Gets the object data.

public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The information.

context StreamingContext

The context.