Struct CRUDWriteError
Provides information about document write error
Inherited Members
Namespace: Azos.Data.Access.MongoDb.Connector
Assembly: Azos.MongoDb.dll
Syntax
[Serializable]
public struct CRUDWriteError
Fields
Code
Mandatory field with integer format. Contains a numeric code corresponding to a certain type of error
Declaration
public readonly int Code
Field Value
Type | Description |
---|---|
System.Int32 |
Index
WRITE ERROR ONLY, The index of the erroneous batch item relative to request batch order. Batch items indexes start with 0
Declaration
public readonly int Index
Field Value
Type | Description |
---|---|
System.Int32 |
Info
Optional field, with a BSONObj format. This field contains structured information about an error that can be processed programmatically. For example, if a request returns with a shard version error, we may report the proper shard version as a sub-field here. For another example, if a write concern timeout occurred, the information previously reported on wtimeout would be reported here. The format of this field depends on the code above
Declaration
public readonly object Info
Field Value
Type | Description |
---|---|
System.Object |
Message
Mandatory field, containing a human-readable version of the error.
Declaration
public readonly string Message
Field Value
Type | Description |
---|---|
System.String |