Package com.mongodb
Class MongoTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mongodb.MongoException
com.mongodb.MongoClientException
com.mongodb.MongoTimeoutException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MongoOperationTimeoutException
An exception indicating that the driver has timed out waiting for either a server or a connection to become available.
- See Also:
-
Field Summary
Fields inherited from class com.mongodb.MongoException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
-
Constructor Summary
ConstructorDescriptionMongoTimeoutException
(String message) Construct a new instance.MongoTimeoutException
(String message, Throwable cause) Construct a new instance -
Method Summary
Methods inherited from class com.mongodb.MongoException
addLabel, addLabels, addLabels, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MongoTimeoutException
Construct a new instance.- Parameters:
message
- the message
-
MongoTimeoutException
Construct a new instance- Parameters:
message
- the messagecause
- the cause- Since:
- 5.2
-