Click or drag to resize
MongoServerException Class
Represents a MongoDB server exception.
Inheritance Hierarchy
System.Exception
    MongoDB.Driver.MongoException
      MongoDB.Driver.MongoServerException
        More...

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.4.1
Syntax
[SerializableAttribute]
public class MongoServerException : MongoException

The MongoServerException type exposes the following members.

Constructors
  NameDescription
Public methodMongoServerException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoServerException class.
Public methodMongoServerException(ConnectionId, String)
Initializes a new instance of the MongoServerException class.
Public methodMongoServerException(ConnectionId, String, Exception)
Initializes a new instance of the MongoServerException class.
Top
Methods
  NameDescription
Public methodObject.)
Public methodGetObjectData
When overridden in a derived class, sets the Exception.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
Properties
  NameDescription
Public propertyConnectionId
Gets the connection identifier.
Public propertyException.)
Public propertyException.)
Top
Events
  NameDescription
Protected eventSystem.Exception
    MongoDB.Driver.MongoException
      MongoDB.Driver.MongoServerException
        MongoDB.Driver.Core.Operations.MongoBulkWriteOperationException
        MongoDB.Driver.GridFS.MongoGridFSException
        MongoDB.Driver.MongoBulkWriteException
        MongoDB.Driver.MongoCommandException
        MongoDB.Driver.MongoExecutionTimeoutException
        MongoDB.Driver.MongoNodeIsRecoveringException
        MongoDB.Driver.MongoNotPrimaryException
        MongoDB.Driver.MongoQueryException
        MongoDB.Driver.MongoWriteException

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant