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
connectionId
ConnectionIdThe connection identifier.
message
stringThe message.
query
BsonDocumentThe query.
queryResult
BsonDocumentThe query result.
MongoQueryException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoQueryException class.
protected MongoQueryException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo.
context
StreamingContextThe 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
info
SerializationInfocontext
StreamingContext