Table of Contents

Constructor MongoServerException

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

MongoServerException(ConnectionId, string)

Initializes a new instance of the MongoServerException class.

public MongoServerException(ConnectionId connectionId, string message)

Parameters

connectionId ConnectionId

The connection identifier.

message string

The error message.

MongoServerException(ConnectionId, string, Exception)

Initializes a new instance of the MongoServerException class.

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

Parameters

connectionId ConnectionId

The connection identifier.

message string

The error message.

innerException Exception

The inner exception.

MongoServerException(SerializationInfo, StreamingContext)

Initializes a new instance of the MongoServerException class.

public MongoServerException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo.

context StreamingContext

The StreamingContext.