Class MongoCommandException
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Represents a MongoDB command exception.
public class MongoCommandException : MongoServerException, ISerializableInheritance
MongoCommandException
Implements
Derived
Inherited Members
Constructors
MongoCommandException(ConnectionId, string, BsonDocument)
Initializes a new instance of the MongoCommandException class.
MongoCommandException(ConnectionId, string, BsonDocument, BsonDocument)
Initializes a new instance of the MongoCommandException class.
MongoCommandException(ConnectionId, string, BsonDocument, BsonDocument, Exception)
Initializes a new instance of the MongoCommandException class.
MongoCommandException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoCommandException class.
Properties
Gets the error code.
Gets the name of the error code.
Gets the command.
Gets the error message.
Gets the command result.
Methods
GetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the SerializationInfo with information about the exception.