Class MongoServerException
Represents a MongoDB server exception.
- Inheritance
-
Mongo
Server Exception
- Implements
- Derived
- Inherited Members
Constructors
- Mongo
Server Exception(Connection Id, string) Initializes a new instance of the Mongo
Server class.Exception
- Mongo
Server Exception(Connection Id, string, Exception) Initializes a new instance of the Mongo
Server class.Exception
- Mongo
Server Exception(Serialization Info, Streaming Context) Initializes a new instance of the Mongo
Server class.Exception
Properties
- Connection
Id Gets the connection identifier.
Methods
- Add
Error Labels From Command Result(Mongo Server Exception, Bson Document) Adds error labels from a command result document into the top-level label list.
- Get
Object Data(Serialization Info, Streaming Context) When overridden in a derived class, sets the Serialization
Info with information about the exception.