Class MongoWriteException
Represents a write exception.
[Serializable]
public class MongoWriteException : MongoServerException, ISerializable
- Inheritance
-
MongoWriteException
- Implements
- Inherited Members
Constructors
MongoWriteException(ConnectionId, WriteError, WriteConcernError, Exception)
Initializes a new instance of the MongoWriteException class.
public MongoWriteException(ConnectionId connectionId, WriteError writeError, WriteConcernError writeConcernError, Exception innerException)
Parameters
connectionIdConnectionIdThe connection identifier.
writeErrorWriteErrorThe write error.
writeConcernErrorWriteConcernErrorThe write concern error.
innerExceptionExceptionThe inner exception.
MongoWriteException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoQueryException class (this overload supports deserialization).
public MongoWriteException(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo.
contextStreamingContextThe StreamingContext.
Properties
WriteConcernError
Gets the write concern error.
public WriteConcernError WriteConcernError { get; }
Property Value
WriteError
Gets the write error.
public WriteError WriteError { get; }
Property Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
Gets the object data.
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe information.
contextStreamingContextThe context.