Table of Contents

Constructor MongoCommandException

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

MongoCommandException(ConnectionId, string, BsonDocument)

Initializes a new instance of the MongoCommandException class.

public MongoCommandException(ConnectionId connectionId, string message, BsonDocument command)

Parameters

connectionId ConnectionId

The connection identifier.

message string

The message.

command BsonDocument

The 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 ConnectionId

The connection identifier.

message string

The message.

command BsonDocument

The command.

result BsonDocument

The 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 ConnectionId

The connection identifier.

message string

The message.

command BsonDocument

The command.

result BsonDocument

The command result.

innerException Exception

The inner exception.

MongoCommandException(SerializationInfo, StreamingContext)

Initializes a new instance of the MongoCommandException class.

protected MongoCommandException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo.

context StreamingContext

The StreamingContext.