Package org.springframework.data.mongodb
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
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 Summary
ConstructorDescriptionConstructor forMongoTransactionException
.MongoTransactionException
(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
-
MongoTransactionException
Constructor forMongoTransactionException
.- Parameters:
msg
- the detail message. Must not be null.
-
MongoTransactionException
Constructor forClientSessionException
.- Parameters:
msg
- the detail message. Can be null.cause
- the root cause. Can be null.
-