Class TransactionTimedOutException

All Implemented Interfaces:
Serializable

public class TransactionTimedOutException extends TransactionException
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 Details

    • TransactionTimedOutException

      public TransactionTimedOutException(String msg)
      Constructor for TransactionTimedOutException.
      Parameters:
      msg - the detail message
    • TransactionTimedOutException

      public TransactionTimedOutException(String msg, Throwable cause)
      Constructor for TransactionTimedOutException.
      Parameters:
      msg - the detail message
      cause - the root cause from the transaction API in use