Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## javax.persistence
Class TransactionRequiredException

    java.lang.Object
      java.lang.Throwable
          java.lang.Exception
              java.lang.RuntimeException
                  javax.persistence.PersistenceException
                      javax.persistence.TransactionRequiredException

All Implemented Interfaces:
  java.io.Serializable

    public class TransactionRequiredException

extends PersistenceException

Thrown by the persistence provider when a transaction is required but is not active.

Since:
  Java Persistence 1.0
See Also:
  Serialized Form

Constructor Summary
`TransactionRequiredException()` Constructs a new `TransactionRequiredException` exception with `null` as its detail message.
`TransactionRequiredException(java.lang.String message)` Constructs a new `TransactionRequiredException` exception with the specified detail message.

Method Summary

Methods inherited from class java.lang.Throwable
`fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### TransactionRequiredException

    public TransactionRequiredException()

  Constructs a new `TransactionRequiredException` exception with `null` as its detail message.

### TransactionRequiredException

    public TransactionRequiredException(java.lang.String message)

  Constructs a new `TransactionRequiredException` exception with the specified detail message.

  Parameters:
    `message` - the detail message.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD