Class MongoConnectionException
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Represents a MongoDB connection exception.
public class MongoConnectionException : MongoException, ISerializable
Inheritance
MongoConnectionException
Implements
Derived
Inherited Members
Constructors
MongoConnectionException(ConnectionId, string)
Initializes a new instance of the MongoConnectionException class.
MongoConnectionException(ConnectionId, string, Exception)
Initializes a new instance of the MongoConnectionException class.
MongoConnectionException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoConnectionException class.
Properties
Gets the connection identifier.
ContainsSocketTimeoutException
Whether or not this exception contains a socket timeout exception.
Whether or not this exception contains a timeout exception.
Determines whether the exception is network error or no.
Methods
GetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the SerializationInfo with information about the exception.