com.arjuna.mw.wsas.exceptions
Class WSASException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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:
Serialized Form

Constructor Summary
WSASException()
          Constructs a WSASException object; reason defaults to null and errorcode defaults to 0.
WSASException(Object obj)
          Constructs a WSASException object with the specified object.
WSASException(String reason)
          Constructs a WSASException object with the specified reason.
WSASException(String reason, int errorcode)
          Constructs a WSASException object with the specified reason and errorcode.
WSASException(String reason, Object obj)
          Constructs a WSASException object with the specified reason and object.
 
Method Summary
 Object getData()
           
 int 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

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.


WSASException

public WSASException(String reason,
                     int errorcode)
Constructs a WSASException object with the specified reason and errorcode.


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 Detail

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.


Copyright © 2012. All Rights Reserved.