Constructor MongoCommandException
MongoCommandException(ConnectionId, string, BsonDocument)
Initializes a new instance of the MongoCommandException class.
public MongoCommandException(ConnectionId connectionId, string message, BsonDocument command)
Parameters
connectionIdConnectionIdThe connection identifier.
messagestringThe message.
commandBsonDocumentThe command.
MongoCommandException(ConnectionId, string, BsonDocument, BsonDocument)
Initializes a new instance of the MongoCommandException class.
public MongoCommandException(ConnectionId connectionId, string message, BsonDocument command, BsonDocument result)
Parameters
connectionIdConnectionIdThe connection identifier.
messagestringThe message.
commandBsonDocumentThe command.
resultBsonDocumentThe command result.
MongoCommandException(ConnectionId, string, BsonDocument, BsonDocument, Exception)
Initializes a new instance of the MongoCommandException class.
public MongoCommandException(ConnectionId connectionId, string message, BsonDocument command, BsonDocument result, Exception innerException)
Parameters
connectionIdConnectionIdThe connection identifier.
messagestringThe message.
commandBsonDocumentThe command.
resultBsonDocumentThe command result.
innerExceptionExceptionThe inner exception.
MongoCommandException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoCommandException class.
protected MongoCommandException(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo.
contextStreamingContextThe StreamingContext.