org.apache.commons.transaction
Class TransactionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.commons.transaction.TransactionException
All Implemented Interfaces:
Serializable

public class TransactionException
extends RuntimeException

General exception for all kinds of transactional problems.

See Also:
Serialized Form

Nested Class Summary
static class TransactionException.Code
           
 
Field Summary
protected  TransactionException.Code code
           
 
Constructor Summary
TransactionException(Throwable cause)
           
TransactionException(Throwable cause, TransactionException.Code code)
           
TransactionException(TransactionException.Code code)
           
 
Method Summary
 TransactionException.Code getCode()
          Returns the formal reason for the exception.
 
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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

code

protected TransactionException.Code code
Constructor Detail

TransactionException

public TransactionException(Throwable cause,
                            TransactionException.Code code)

TransactionException

public TransactionException(Throwable cause)

TransactionException

public TransactionException(TransactionException.Code code)
Method Detail

getCode

public TransactionException.Code getCode()
Returns the formal reason for the exception.

Returns:
the reason code


Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.