Class MongoExecutionTimeoutException
Represents a MongoDB execution timeout exception.
[Serializable]
public class MongoExecutionTimeoutException : MongoServerException, ISerializable
- Inheritance
-
MongoExecutionTimeoutException
- Implements
- Inherited Members
Constructors
MongoExecutionTimeoutException(ConnectionId, string)
Initializes a new instance of the MongoExecutionTimeoutException class.
public MongoExecutionTimeoutException(ConnectionId connectionId, string message)
Parameters
connectionIdConnectionIdThe connection identifier.
messagestringThe error message.
MongoExecutionTimeoutException(ConnectionId, string, BsonDocument)
Initializes a new instance of the MongoExecutionTimeoutException class.
public MongoExecutionTimeoutException(ConnectionId connectionId, string message, BsonDocument result)
Parameters
connectionIdConnectionIdThe connection identifier.
messagestringThe error message.
resultBsonDocumentThe command result.
MongoExecutionTimeoutException(ConnectionId, string, Exception)
Initializes a new instance of the MongoExecutionTimeoutException class.
public MongoExecutionTimeoutException(ConnectionId connectionId, string message, Exception innerException)
Parameters
connectionIdConnectionIdThe connection identifier.
messagestringThe error message.
innerExceptionExceptionThe inner exception.
MongoExecutionTimeoutException(ConnectionId, string, Exception, BsonDocument)
Initializes a new instance of the MongoExecutionTimeoutException class.
public MongoExecutionTimeoutException(ConnectionId connectionId, string message, Exception innerException, BsonDocument result)
Parameters
connectionIdConnectionIdThe connection identifier.
messagestringThe error message.
innerExceptionExceptionThe inner exception.
resultBsonDocumentThe command result.
MongoExecutionTimeoutException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoExecutionTimeoutException class.
public MongoExecutionTimeoutException(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo.
contextStreamingContextThe StreamingContext.
Properties
Code
Gets the error code.
public int Code { get; }
Property Value
- int
The error code.
CodeName
Gets the name of the error code.
public string CodeName { get; }
Property Value
- string
The name of the error code.
Methods
GetObjectData(SerializationInfo, StreamingContext)
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfocontextStreamingContext