Class TransactionTimedOutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.transaction.exceptions.TransactionException
io.micronaut.transaction.exceptions.TransactionTimedOutException
- All Implemented Interfaces:
Serializable
Exception that a transaction manager can throw when the deadline of a transaction, derived from its
timeout, has passed.
The transaction managers shipped with Micronaut Data do not check the deadline themselves. Where the underlying resource supports it, they pass the timeout to it instead (for example as the Hibernate transaction timeout, or as the MongoDB maximum commit time), so an expired timeout surfaces as an exception of that resource.
- Since:
- 1.1.5
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for TransactionTimedOutException.TransactionTimedOutException(String msg, Throwable cause) Constructor for TransactionTimedOutException. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TransactionTimedOutException
Constructor for TransactionTimedOutException.- Parameters:
msg- the detail message
-
TransactionTimedOutException
-