|
||||||||||
| 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
com.xenonsoft.bridgetown.aop.transaction.TransactionException
com.xenonsoft.bridgetown.aop.transaction.HeuristicFailureException
This exception indicates there was problem during a commit or rollback of a transaction with left the transaction object in a incomplete state. A heuristic decision was made and some parts of the transaction was committed but other parts have been rolled back.
| Nested Class Summary | |
static class |
HeuristicFailureException.HeuristicType
Inner enumeration constant for representing heuristic decisions. |
| Field Summary | |
protected HeuristicFailureException.HeuristicType |
heuristicType
Heuristic decision |
| Constructor Summary | |
HeuristicFailureException()
Default constructor |
|
HeuristicFailureException(HeuristicFailureException.HeuristicType heuristicType,
java.lang.String message,
java.lang.Throwable cause)
Standard constructor |
|
HeuristicFailureException(java.lang.String message)
Standard constructor |
|
HeuristicFailureException(java.lang.String message,
java.lang.Throwable cause)
Standard constructor |
|
HeuristicFailureException(java.lang.Throwable cause)
Standard constructor |
|
| Method Summary | |
HeuristicFailureException.HeuristicType |
getHeuristicType()
Gets the heuristicType |
void |
printStackTrace()
Implements / overrides printStackTrace |
void |
printStackTrace(java.io.PrintStream ps)
Implements / overrides printStackTrace |
void |
printStackTrace(java.io.PrintWriter pw)
Implements / overrides printStackTrace |
void |
setHeuristicType(HeuristicFailureException.HeuristicType heuristicType)
Sets the heuristicType |
java.lang.String |
toString()
Returns a human readable string. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected HeuristicFailureException.HeuristicType heuristicType
| Constructor Detail |
public HeuristicFailureException()
public HeuristicFailureException(java.lang.String message)
message - the message to reportpublic HeuristicFailureException(java.lang.Throwable cause)
cause - the root cause
public HeuristicFailureException(java.lang.String message,
java.lang.Throwable cause)
message - the message to reportcause - the root cause
public HeuristicFailureException(HeuristicFailureException.HeuristicType heuristicType,
java.lang.String message,
java.lang.Throwable cause)
heuristicType - the heuristic typemessage - the message to reportcause - the root cause| Method Detail |
public HeuristicFailureException.HeuristicType getHeuristicType()
public void setHeuristicType(HeuristicFailureException.HeuristicType heuristicType)
heuristicType - the new value for heuristicTypepublic java.lang.String toString()
Object.toString()public void printStackTrace()
Throwable.printStackTrace()public void printStackTrace(java.io.PrintStream ps)
ps - Throwable.printStackTrace(java.io.PrintStream)public void printStackTrace(java.io.PrintWriter pw)
pw - Throwable.printStackTrace(java.io.PrintWriter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||