org.apache.ojb.odmg
Class TransactionAbortedExceptionOJB

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.odmg.ODMGRuntimeException
                  extended by org.odmg.TransactionAbortedException
                      extended by org.apache.ojb.odmg.TransactionAbortedExceptionOJB
All Implemented Interfaces:
Serializable

public class TransactionAbortedExceptionOJB
extends TransactionAbortedException

This specialised exception allows us to capture the cause of an ODMG TransactionAbortedException. This, in turn, gives the "catcher" of the exception the ability to take different courses of action dependent upon why the transaction was aborted.

This exception has been created as a subclass of org.odmg.TransactionAbortedException so that we don't

Author:
Charles Anthony
See Also:
Serialized Form

Field Summary
private  Throwable cause
          The cause of a TransactionAbortedException
 
Constructor Summary
TransactionAbortedExceptionOJB()
           
TransactionAbortedExceptionOJB(String msg)
           
TransactionAbortedExceptionOJB(String msg, Throwable th)
           
TransactionAbortedExceptionOJB(Throwable cause)
           
 
Method Summary
 Throwable getCause()
          Returns the cause of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

cause

private Throwable cause
The cause of a TransactionAbortedException

Constructor Detail

TransactionAbortedExceptionOJB

public TransactionAbortedExceptionOJB()

TransactionAbortedExceptionOJB

public TransactionAbortedExceptionOJB(String msg)

TransactionAbortedExceptionOJB

public TransactionAbortedExceptionOJB(String msg,
                                      Throwable th)

TransactionAbortedExceptionOJB

public TransactionAbortedExceptionOJB(Throwable cause)
Method Detail

getCause

public Throwable getCause()
Returns the cause of the exception. May be null.

Overrides:
getCause in class Throwable


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.