org.apache.ojb.odmg
Class TransactionAbortedExceptionOJB
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.odmg.ODMGRuntimeException
org.odmg.TransactionAbortedException
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
- Modify the ODMG exception - as it is defined by the ODMG spec
- Break the spec by throwing a non ODMG exception
- Author:
- Charles Anthony
- See Also:
- Serialized Form
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 |
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)
getCause
public java.lang.Throwable getCause()
- Returns the cause of the exception. May be null.
- Overrides:
getCause
in class java.lang.Throwable
(C) 2002 - 2005 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