Table of Contents

Constructor MongoConnectionException

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Core.dll

MongoConnectionException(ConnectionId, string)

Initializes a new instance of the MongoConnectionException class.

public MongoConnectionException(ConnectionId connectionId, string message)

Parameters

connectionId ConnectionId

The connection identifier.

message string

The error message.

MongoConnectionException(ConnectionId, string, Exception)

Initializes a new instance of the MongoConnectionException class.

public MongoConnectionException(ConnectionId connectionId, string message, Exception innerException)

Parameters

connectionId ConnectionId

The connection identifier.

message string

The error message.

innerException Exception

The inner exception.

MongoConnectionException(SerializationInfo, StreamingContext)

Initializes a new instance of the MongoConnectionException class.

public MongoConnectionException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo.

context StreamingContext

The StreamingContext.