Constructor ClientBulkWriteException
ClientBulkWriteException(ConnectionId, string, IReadOnlyDictionary<int, WriteError>, ClientBulkWriteResult, IReadOnlyList<MongoWriteConcernException>, Exception)
Initializes a new instance of the ClientBulkWriteException class.
public ClientBulkWriteException(ConnectionId connectionId, string message, IReadOnlyDictionary<int, WriteError> writeErrors, ClientBulkWriteResult partialResult, IReadOnlyList<MongoWriteConcernException> writeConcernErrors = null, Exception innerException = null)
Parameters
connectionId
ConnectionIdThe connection identifier.
message
stringThe error message.
writeErrors
IReadOnlyDictionary<int, WriteError>Errors that occurred during the execution of individual write operations.
partialResult
ClientBulkWriteResultThe results of any successful operations that were performed before the error was encountered.
writeConcernErrors
IReadOnlyList<MongoWriteConcernException>Write concern errors that occurred while executing the bulk write.
innerException
ExceptionThe inner exception.