qflib 0.98.0

de.qfs.lib.transaction
Class FatalTransactionException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--de.qfs.lib.transaction.FatalTransactionException
All Implemented Interfaces:
java.io.Serializable

public class FatalTransactionException
extends java.lang.RuntimeException

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.

Since:
0.97.0
Version:
$Revision: 1.5 $
Author:
Gregor Schmid
See Also:
Serialized Form

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, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FatalTransactionException

public FatalTransactionException(java.lang.String detail)
Create a new FatalTransactionException.
Parameters:
detail - A message stating the reason for the Exception.

FatalTransactionException

public FatalTransactionException(java.lang.String detail,
                                 java.lang.Exception nested)
Create a new FatalTransactionException.
Parameters:
detail - A message stating the reason for the Exception.
nested - The Exception that caused the FatalTransactionException.
Method Detail

getNestedException

public final java.lang.Exception getNestedException()
Get the nested Exception.
Returns:
The Exception that caused the FatalTransactionException.

qflib 0.98.0