Class BulkOperationException<T>
Exception thrown from bulk operaions (e.g. Collection.InsertManyAsync, Collection.UpdateManyAsync, etc.) when an error occurs. If the operation was partially successful, the PartialResult property will contain the results of the operation that succeeded.
public class BulkOperationException<T> : Exception, ISerializable, _Exception
Type Parameters
T
- Inheritance
-
BulkOperationException<T>
- Implements
- Inherited Members
Constructors
BulkOperationException(Exception, T)
Initializes a new instance using the message and details from a causing exception, along with the partial result.
public BulkOperationException(Exception causingException, T partialResult)
Parameters
causingExceptionExceptionpartialResultT
BulkOperationException(string, T)
Initializes a new instance with the specified error message and partial result.
public BulkOperationException(string message, T partialResult)
Parameters
messagestringpartialResultT
Properties
PartialResult
The partial result from the operations that completed successfully before the failure occurred.
public T PartialResult { get; set; }
Property Value
- T