com.xenonsoft.bridgetown.aop.transaction
Class HeuristicFailureException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.xenonsoft.bridgetown.aop.transaction.TransactionException
                  extended bycom.xenonsoft.bridgetown.aop.transaction.HeuristicFailureException
All Implemented Interfaces:
java.io.Serializable

public class HeuristicFailureException
extends TransactionException

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.

Version:
$Id: HeuristicFailureException.java,v 1.3 2005/03/17 02:35:51 peter_pilgrim Exp $
Author:
Peter Pilgrim, 18-Nov-2004 22:50:08
See Also:
Serialized Form

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

heuristicType

protected HeuristicFailureException.HeuristicType heuristicType
Heuristic decision

Constructor Detail

HeuristicFailureException

public HeuristicFailureException()
Default constructor


HeuristicFailureException

public HeuristicFailureException(java.lang.String message)
Standard constructor

Parameters:
message - the message to report

HeuristicFailureException

public HeuristicFailureException(java.lang.Throwable cause)
Standard constructor

Parameters:
cause - the root cause

HeuristicFailureException

public HeuristicFailureException(java.lang.String message,
                                 java.lang.Throwable cause)
Standard constructor

Parameters:
message - the message to report
cause - the root cause

HeuristicFailureException

public HeuristicFailureException(HeuristicFailureException.HeuristicType heuristicType,
                                 java.lang.String message,
                                 java.lang.Throwable cause)
Standard constructor

Parameters:
heuristicType - the heuristic type
message - the message to report
cause - the root cause
Method Detail

getHeuristicType

public HeuristicFailureException.HeuristicType getHeuristicType()
Gets the heuristicType

Returns:
Returns the heuristicType.

setHeuristicType

public void setHeuristicType(HeuristicFailureException.HeuristicType heuristicType)
Sets the heuristicType

Parameters:
heuristicType - the new value for heuristicType

toString

public java.lang.String toString()
Returns a human readable string. Implements / overrides toString

Returns:
the string output.
See Also:
Object.toString()

printStackTrace

public void printStackTrace()
Implements / overrides printStackTrace

See Also:
Throwable.printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Implements / overrides printStackTrace

Parameters:
ps -
See Also:
Throwable.printStackTrace(java.io.PrintStream)

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Implements / overrides printStackTrace

Parameters:
pw -
See Also:
Throwable.printStackTrace(java.io.PrintWriter)


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.