Class MongoException
Represents a MongoDB exception.
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)
When overridden in a derived class, sets the SerializationInfo with information about the exception.
- HasErrorLabel(string)
Determines whether the exception has some error label.
- RemoveErrorLabel(string)
Removes the error label.