Class MongoServerException
Represents a MongoDB server exception.
public class MongoServerException : MongoException, ISerializable
- Inheritance
-
MongoServerException
- Implements
- Derived
- Inherited Members
Constructors
- MongoServerException(ConnectionId, string)
Initializes a new instance of the MongoServerException class.
- MongoServerException(ConnectionId, string, Exception)
Initializes a new instance of the MongoServerException class.
- MongoServerException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoServerException class.
Properties
- ConnectionId
Gets the connection identifier.
Methods
- AddErrorLabelsFromCommandResult(MongoServerException, BsonDocument)
Adds error labels from a command result document into the top-level label list.
- GetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the SerializationInfo with information about the exception.