Package com.mongodb
Class MongoConnectionPoolClearedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.mongodb.MongoException
-
- com.mongodb.MongoClientException
-
- com.mongodb.MongoConnectionPoolClearedException
-
- All Implemented Interfaces:
Serializable
public final class MongoConnectionPoolClearedException extends MongoClientException
An exception that may usually happen as a result of another thread clearing a connection pool. Such clearing usually itself happens as a result of an exception, in which case it may be specified via theThrowable.getCause()
method.It is always safe to retry an operation that failed with this exception.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.mongodb.MongoException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
-
-
Constructor Summary
Constructors Constructor Description MongoConnectionPoolClearedException(ServerId connectionPoolServerId, Throwable cause)
Not part of the public API.
-
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
-
-