Constructor MongoCommandException
MongoCommandException(ConnectionId, string, BsonDocument)
Initializes a new instance of the MongoCommandException class.
public MongoCommandException(ConnectionId connectionId, string message, BsonDocument command)
Parameters
connectionId
ConnectionIdThe connection identifier.
message
stringThe message.
command
BsonDocumentThe 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
connectionId
ConnectionIdThe connection identifier.
message
stringThe message.
command
BsonDocumentThe command.
result
BsonDocumentThe 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
connectionId
ConnectionIdThe connection identifier.
message
stringThe message.
command
BsonDocumentThe command.
result
BsonDocumentThe command result.
innerException
ExceptionThe inner exception.
MongoCommandException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoCommandException class.
protected MongoCommandException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo.
context
StreamingContextThe StreamingContext.