public class

NoTransactionException

extends TransactionUsageException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.springframework.core.NestedRuntimeException
           ↳ org.springframework.transaction.TransactionException
             ↳ org.springframework.transaction.TransactionUsageException
               ↳ org.springframework.transaction.NoTransactionException

Class Overview

Exception thrown when an operation is attempted that relies on an existing transaction (such as setting rollback status) and there is no existing transaction. This represents an illegal usage of the transaction API.

Summary

Public Constructors
NoTransactionException(String msg)
Constructor for NoTransactionException.
NoTransactionException(String msg, Throwable cause)
Constructor for NoTransactionException.
[Expand]
Inherited Methods
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public NoTransactionException (String msg)

Constructor for NoTransactionException.

Parameters
msg the detail message

public NoTransactionException (String msg, Throwable cause)

Constructor for NoTransactionException.

Parameters
msg the detail message
cause the root cause from the transaction API in use