Table of Contents

Class MongoException

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

Represents a MongoDB exception.

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

Constructors

MongoException(SerializationInfo, StreamingContext)

Initializes a new instance of the MongoException class.

MongoException(string)

Initializes a new instance of the MongoException class.

MongoException(string, Exception)

Initializes a new instance of the MongoException class.

Properties

ErrorLabels

Gets the error labels.

Methods

AddErrorLabel(string)

Adds an error label.

GetObjectData(SerializationInfo, StreamingContext)
HasErrorLabel(string)

Determines whether the exception has some error label.

RemoveErrorLabel(string)

Removes the error label.