com.arjuna.mw.wsas.exceptions
Class ProtocolViolationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.arjuna.mw.wsas.exceptions.WSASException
              extended by com.arjuna.mw.wsas.exceptions.ProtocolViolationException
All Implemented Interfaces:
Serializable

public class ProtocolViolationException
extends WSASException

Thrown if the underlying protocol is violated in some way during termination. For example, a two-phase commit protocol is necessarily blocking to ensure consensus in the precence of failures. However, this could mean that participants who have been prepared have to wait forever if they don't get told the results of the transaction by the (failed) coordinator. As such, heuristics were introduced to allow a participant to make a unilateral decision about what to do. If this decision goes against the coordinator's choice then the two-phase protocol is violated.

Since:
1.0.
Version:
$Id: ProtocolViolationException.java,v 1.1 2002/11/25 10:51:43 nmcl Exp $
Author:
Mark Little (mark.little@arjuna.com)
See Also:
Serialized Form

Constructor Summary
ProtocolViolationException()
           
ProtocolViolationException(String s)
           
ProtocolViolationException(String s, int errorcode)
           
 
Method Summary
 
Methods inherited from class com.arjuna.mw.wsas.exceptions.WSASException
getData, getErrorCode
 
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

ProtocolViolationException

public ProtocolViolationException()

ProtocolViolationException

public ProtocolViolationException(String s)

ProtocolViolationException

public ProtocolViolationException(String s,
                                  int errorcode)


Copyright © 2012. All Rights Reserved.