Package com.mongodb
Class MongoExecutionTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mongodb.MongoException
com.mongodb.MongoExecutionTimeoutException
- All Implemented Interfaces:
Serializable
Exception indicating that the execution of the current operation timed out as a result of the maximum operation time being exceeded.
- Since:
- 2.12
- See Also:
-
Field Summary
Fields inherited from class com.mongodb.MongoException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL -
Constructor Summary
ConstructorsConstructorDescriptionMongoExecutionTimeoutException(int code, String message) Construct a new instance.MongoExecutionTimeoutException(int code, String message, BsonDocument response) Construct a new instance.Method Summary
Methods inherited from class com.mongodb.MongoException
addLabel, addLabels, addLabels, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabelMethods inherited from class java.lang.Throwable
getLocalizedMessage, initCause, setStackTrace, toString-
Constructor Details
-
MongoExecutionTimeoutException
Construct a new instance.- Parameters:
code- the error codemessage- the error message
-
MongoExecutionTimeoutException
Construct a new instance.- Parameters:
code- the error codemessage- the error messageresponse- the response- Since:
- 4.1
-