Class ClientSessionException

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
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MongoTransactionException

public class ClientSessionException extends org.springframework.dao.NonTransientDataAccessException
NonTransientDataAccessException specific to MongoDB ClientSession related data access failures such as reading data using an already closed session.
Since:
2.1
Author:
Christoph Strobl
See Also:
  • Constructor Details

    • ClientSessionException

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

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