Table of Contents

Constructor MongoQueryException

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

MongoQueryException(ConnectionId, string, BsonDocument, BsonDocument)

Initializes a new instance of the MongoQueryException class.

public MongoQueryException(ConnectionId connectionId, string message, BsonDocument query, BsonDocument queryResult)

Parameters

connectionId ConnectionId

The connection identifier.

message string

The message.

query BsonDocument

The query.

queryResult BsonDocument

The query result.

MongoQueryException(SerializationInfo, StreamingContext)

Initializes a new instance of the MongoQueryException class.

protected MongoQueryException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo.

context StreamingContext

The StreamingContext.