Package com.mongodb
Class WithTransactionTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mongodb.MongoException
com.mongodb.MongoClientException
com.mongodb.WithTransactionTimeoutException
- All Implemented Interfaces:
Serializable
An exception indicating that the convenient transactions API (
withTransaction)
exceeded its overall timeout while retrying the user-supplied callback or the commit loop.
The last encountered error (if any) is attached as the
cause.- Since:
- 5.12
- See Also:
- MongoDB documentation
- withTransaction
-
Field Summary
Fields inherited from class com.mongodb.MongoException
RETRYABLE_ERROR_LABEL, SYSTEM_OVERLOADED_ERROR_LABEL, TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL -
Constructor Summary
ConstructorsConstructorDescriptionWithTransactionTimeoutException(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, removeLabelMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WithTransactionTimeoutException
Construct a new instance- Parameters:
message- the messagecause- the cause
-