Class MongoWriteConcernException
Represents a MongoDB write concern exception.
public class MongoWriteConcernException : MongoCommandException, ISerializable
- Inheritance
-
MongoWriteConcernException
- Implements
- Derived
- Inherited Members
Constructors
- MongoWriteConcernException(ConnectionId, string, WriteConcernResult)
Initializes a new instance of the MongoWriteConcernException class.
- MongoWriteConcernException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoWriteConcernException class.
Properties
- MappedWriteConcernResultException
Gets the mapped write concern result exception.
- WriteConcernResult
Gets the write concern result.
Methods
- GetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the SerializationInfo with information about the exception.
- IsWriteConcernErrorOnly()
Determines whether the exception is due to a write concern error only.