au.gov.tas.dpiwe.mr
Class MrHeuristicMixedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.transaction.HeuristicMixedException
              extended by au.gov.tas.dpiwe.mr.MrHeuristicMixedException
All Implemented Interfaces:
Serializable

public class MrHeuristicMixedException
extends HeuristicMixedException

MrHeuristicMixedException is thrown to report that a heuristic decision was made and that some relevant updates have been committed and others have been rolled back. MrHeuristicMixedException implements the new Java 1.4 exception chaining mechanism to allow the architecture to support this feature in J2SE 1.3 environments.

Since:
Mr Architecture 1.8
Version:
1.0.0.1
Author:
Kade Hansson
See Also:
Serialized Form

Field Summary
protected  Throwable cause
           
 
Constructor Summary
MrHeuristicMixedException(String message, Throwable cause)
          Constructs a new heuristic mixed exception.
 
Method Summary
 Throwable getCause()
          Returns the cause of this partial commit.
 Throwable initCause(Throwable cause)
          Sets the reason for the partial commit.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cause

protected Throwable cause
Constructor Detail

MrHeuristicMixedException

public MrHeuristicMixedException(String message,
                                 Throwable cause)
Constructs a new heuristic mixed exception.

Parameters:
message - the detail message.
cause - the exception which caused the partial commit.
Method Detail

initCause

public Throwable initCause(Throwable cause)
Sets the reason for the partial commit.

Overrides:
initCause in class Throwable
Parameters:
cause - the cause of this partial commit.

getCause

public Throwable getCause()
Returns the cause of this partial commit.

Overrides:
getCause in class Throwable
Returns:
the exception which caused the partial commit.