Table of Contents

Constructor MongoException

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

MongoException(string)

Initializes a new instance of the MongoException class.

public MongoException(string message)

Parameters

message string

The error message.

MongoException(string, Exception)

Initializes a new instance of the MongoException class.

public MongoException(string message, Exception innerException)

Parameters

message string

The error message.

innerException Exception

The inner exception.

MongoException(SerializationInfo, StreamingContext)

Initializes a new instance of the MongoException class.

public MongoException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo.

context StreamingContext

The StreamingContext.