javax.transaction

Class TransactionRequiredException

Implemented Interfaces:
Serializable

public class TransactionRequiredException
extends RemoteException

An exception thrown from a commit on a resource when the resource already heuristically rolled back.
See Also:
Serialized Form

Field Summary

Fields inherited from class java.rmi.RemoteException

detail

Constructor Summary

TransactionRequiredException()
Constructs an IOException with null as its error detail message.
TransactionRequiredException(String msg)
Constructs an IOException with the specified detail message.
TransactionRequiredException(String msg, Throwable e)
TransactionRequiredException(Throwable e)

Method Summary

Methods inherited from class java.rmi.RemoteException

getCause, getMessage

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

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

TransactionRequiredException

public TransactionRequiredException()
Constructs an IOException with null as its error detail message.
Usages and Demos :

View More Examples of TransactionRequiredException()
   1:             if ( context.clientTx == null ){
   2:                 throw new ApplicationException(new javax.transaction.TransactionRequiredException());
   3:             }
   4:                     
   5:             context.currentTx = context.clientTx;

View Full Code Here
   1:                     } else {
   2:                         throw new javax.transaction.TransactionRequiredException();
   3:                     }
   4:                 } else {
   5:                     m_tm.suspend();

View Full Code Here
   1: 
   2:         ex = new TransactionRequiredException();
   3:         try {
   4:             proxied.echoException(1, ex);
   5:             fail();

View Full Code Here

TransactionRequiredException

public TransactionRequiredException(String msg)
Constructs an IOException with the specified detail message. The error message string s can later be retrieved by the Throwable.getMessage() method of class java.lang.Throwable.
Parameters:

TransactionRequiredException

public TransactionRequiredException(String msg,
                                    Throwable e)

TransactionRequiredException

public TransactionRequiredException(Throwable e)