Table of Contents

Class MongoClientException

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

Represents a MongoDB client exception.

[Serializable]
public class MongoClientException : MongoException, ISerializable
Inheritance
MongoClientException
Implements
Derived
Inherited Members

Constructors

MongoClientException(SerializationInfo, StreamingContext)

Initializes a new instance of the MongoClientException class.

public MongoClientException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo.

context StreamingContext

The StreamingContext.

MongoClientException(string)

Initializes a new instance of the MongoClientException class.

public MongoClientException(string message)

Parameters

message string

The error message.

MongoClientException(string, Exception)

Initializes a new instance of the MongoClientException class.

public MongoClientException(string message, Exception innerException)

Parameters

message string

The error message.

innerException Exception

The inner exception.