Table of Contents

Class MongoConnectionException

Namespace
MongoDB.Driver
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

ConnectionId

Gets the connection identifier.

ContainsSocketTimeoutException

Whether or not this exception contains a socket timeout exception.

ContainsTimeoutException

Whether or not this exception contains a timeout exception.

IsNetworkException

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.