Class WSASException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.arjuna.mw.wsas.exceptions.WSASException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ActiveChildException, DuplicateParticipantException, InvalidActivityException, InvalidHLSException, InvalidParentException, InvalidParticipantException, InvalidTimeoutException, NoActivityException, NoPermissionException, ProtocolNotRegisteredException, ProtocolViolationException, SystemException, WrongStateException

public class WSASException extends Exception
This is the base class from which all WSAS related exceptions inherit. It provides several kinds of additional information: (i) a string describing the error. (ii) an integer code for the error.
Since:
1.0.
Version:
$Id: WSASException.java,v 1.1 2002/11/25 10:51:44 nmcl Exp $
Author:
Mark Little (mark.little@arjuna.com)
See Also:
  • Constructor Details

    • WSASException

      public WSASException()
      Constructs a WSASException object; reason defaults to null and errorcode defaults to 0.
    • WSASException

      public WSASException(String reason)
      Constructs a WSASException object with the specified reason. errorcode defaults to 0.
      Parameters:
      reason - the reason
    • WSASException

      public WSASException(String reason, int errorcode)
      Constructs a WSASException object with the specified reason and errorcode.
      Parameters:
      reason - the reason
      errorcode - the error code
    • WSASException

      public WSASException(String reason, Object obj)
      Constructs a WSASException object with the specified reason and object.
    • WSASException

      public WSASException(Object obj)
      Constructs a WSASException object with the specified object.
  • Method Details

    • getErrorCode

      public final int getErrorCode()
      Returns:
      the errorcode associated with this exception.
    • getData

      public final Object getData()
      Returns:
      the data object associated with this exception.