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:
java.io.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

Constructor Summary
TransactionAbortedExceptionOJB()
           
TransactionAbortedExceptionOJB(java.lang.String msg)
           
TransactionAbortedExceptionOJB(java.lang.String msg, java.lang.Throwable th)
           
TransactionAbortedExceptionOJB(java.lang.Throwable cause)
           
 
Method Summary
 java.lang.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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionAbortedExceptionOJB

public TransactionAbortedExceptionOJB()

TransactionAbortedExceptionOJB

public TransactionAbortedExceptionOJB(java.lang.String msg)

TransactionAbortedExceptionOJB

public TransactionAbortedExceptionOJB(java.lang.String msg,
                                      java.lang.Throwable th)

TransactionAbortedExceptionOJB

public TransactionAbortedExceptionOJB(java.lang.Throwable cause)
Method Detail

getCause

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

Overrides:
getCause in class java.lang.Throwable


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30