Class MongoQueryException
Represents a MongoDB query exception.
[Serializable]
public class MongoQueryException : MongoServerException, ISerializable
- Inheritance
-
MongoQueryException
- Implements
- Derived
- Inherited Members
Constructors
MongoQueryException(ConnectionId, string, BsonDocument, BsonDocument)
Initializes a new instance of the MongoQueryException class.
public MongoQueryException(ConnectionId connectionId, string message, BsonDocument query, BsonDocument queryResult)
Parameters
connectionIdConnectionIdThe connection identifier.
messagestringThe message.
queryBsonDocumentThe query.
queryResultBsonDocumentThe query result.
MongoQueryException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoQueryException class.
protected MongoQueryException(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo.
contextStreamingContextThe StreamingContext.
Properties
Query
Gets the query.
public BsonDocument Query { get; }
Property Value
- BsonDocument
The query.
QueryResult
Gets the query result.
public BsonDocument QueryResult { get; }
Property Value
- BsonDocument
The query result.
Methods
GetObjectData(SerializationInfo, StreamingContext)
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfocontextStreamingContext