Constructor MongoServerException
MongoServerException(ConnectionId, string)
Initializes a new instance of the MongoServerException class.
public MongoServerException(ConnectionId connectionId, string message)
Parameters
connectionId
ConnectionIdThe connection identifier.
message
stringThe error message.
MongoServerException(ConnectionId, string, Exception)
Initializes a new instance of the MongoServerException class.
public MongoServerException(ConnectionId connectionId, string message, Exception innerException)
Parameters
connectionId
ConnectionIdThe connection identifier.
message
stringThe error message.
innerException
ExceptionThe inner exception.
MongoServerException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoServerException class.
public MongoServerException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo.
context
StreamingContextThe StreamingContext.