|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.qfs.lib.transaction.FatalTransactionException
A FatalTransactionException can be thrown by a Commitable
. This happens when a problem occurs, that makes continuation of
a Transaction's
commit
or
rollback
useless or even impossible, e.g. a
failed JDBC commit.
FatalTransactionException is derived from RuntimeException, since they are
so fatal, that there is typically only one handler for it, so it should
travel as far as possible to the top of the call stack. It would be too
extreme to make it an Error
though.
Constructor Summary | |
FatalTransactionException(java.lang.String detail)
Create a new FatalTransactionException. |
|
FatalTransactionException(java.lang.String detail,
java.lang.Exception nested)
Create a new FatalTransactionException. |
Method Summary | |
java.lang.Exception |
getNestedException()
Get the nested 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 |
Constructor Detail |
public FatalTransactionException(java.lang.String detail)
detail
- A message stating the reason for the Exception.public FatalTransactionException(java.lang.String detail, java.lang.Exception nested)
detail
- A message stating the reason for the Exception.nested
- The Exception that caused the
FatalTransactionException.Method Detail |
public final java.lang.Exception getNestedException()
|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |