Constructor MongoWriteException
MongoWriteException(ConnectionId, WriteError, WriteConcernError, Exception)
Initializes a new instance of the MongoWriteException class.
public MongoWriteException(ConnectionId connectionId, WriteError writeError, WriteConcernError writeConcernError, Exception innerException)
Parameters
connectionId
ConnectionIdThe connection identifier.
writeError
WriteErrorThe write error.
writeConcernError
WriteConcernErrorThe write concern error.
innerException
ExceptionThe inner exception.
MongoWriteException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoQueryException class (this overload supports deserialization).
public MongoWriteException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo.
context
StreamingContextThe StreamingContext.