Package org.springframework.data.mongodb
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
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 Summary
ConstructorDescriptionConstructor forClientSessionException
.ClientSessionException
(String msg, Throwable cause) Constructor forClientSessionException
. -
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ClientSessionException
Constructor forClientSessionException
.- Parameters:
msg
- the detail message. Must not be null.
-
ClientSessionException
Constructor forClientSessionException
.- Parameters:
msg
- the detail message. Can be null.cause
- the root cause. Can be null.
-