Class MongoTransactionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.springframework.dao.NonTransientDataAccessException
org.springframework.data.mongodb.ClientSessionException
org.springframework.data.mongodb.MongoTransactionException
All Implemented Interfaces:
Serializable

public class MongoTransactionException extends ClientSessionException
A specific ClientSessionException related to issues with a transaction such as aborted or non existing transactions.
Since:
2.1
Author:
Christoph Strobl
See Also:
  • Constructor Details

    • MongoTransactionException

      public MongoTransactionException(String msg)
      Constructor for MongoTransactionException.
      Parameters:
      msg - the detail message. Must not be null.
    • MongoTransactionException

      public MongoTransactionException(@Nullable String msg, @Nullable Throwable cause)
      Constructor for ClientSessionException.
      Parameters:
      msg - the detail message. Can be null.
      cause - the root cause. Can be null.