Class BulkWriteOperationError
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents the details of a write error for a particular request.
[Serializable]
public sealed class BulkWriteOperationError
- Inheritance
-
BulkWriteOperationError
- Inherited Members
Constructors
BulkWriteOperationError(int, int, string, BsonDocument)
Initializes a new instance of the BulkWriteOperationError class.
public BulkWriteOperationError(int index, int code, string message, BsonDocument details)
Parameters
index
intThe index.
code
intThe code.
message
stringThe message.
details
BsonDocumentThe details.
Properties
Category
Gets the error category.
public ServerErrorCategory Category { get; }
Property Value
- ServerErrorCategory
The error category.
Code
Gets the error code.
public int Code { get; }
Property Value
- int
The error code.
Details
Gets the error details.
public BsonDocument Details { get; }
Property Value
- BsonDocument
The error details.
Index
Gets the index of the request that had an error.
public int Index { get; }
Property Value
- int
The index.
Message
Gets the error message.
public string Message { get; }
Property Value
- string
The error message.