org.springframework.transaction
Class CannotCreateTransactionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.transaction.TransactionException
                      extended by org.springframework.transaction.CannotCreateTransactionException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NestedTransactionNotSupportedException, TransactionSuspensionNotSupportedException

public class CannotCreateTransactionException
extends TransactionException

Exception thrown when a transaction can't be created using an underlying transaction API such as JTA.

Since:
17.03.2003
Author:
Rod Johnson
See Also:
Serialized Form

Constructor Summary
CannotCreateTransactionException(java.lang.String msg)
          Constructor for CannotCreateTransactionException.
CannotCreateTransactionException(java.lang.String msg, java.lang.Throwable cause)
          Constructor for CannotCreateTransactionException.
 
Method Summary
 
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CannotCreateTransactionException

public CannotCreateTransactionException(java.lang.String msg)
Constructor for CannotCreateTransactionException.

Parameters:
msg - the detail message

CannotCreateTransactionException

public CannotCreateTransactionException(java.lang.String msg,
                                        java.lang.Throwable cause)
Constructor for CannotCreateTransactionException.

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