Package com.mongodb

Class WithTransactionTimeoutException

All Implemented Interfaces:
Serializable

public final class WithTransactionTimeoutException extends MongoClientException
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
  • Constructor Details

    • WithTransactionTimeoutException

      public WithTransactionTimeoutException(String message, @Nullable Throwable cause)
      Construct a new instance
      Parameters:
      message - the message
      cause - the cause