Package com.arjuna.mw.wsas.exceptions
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
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 Summary
ConstructorDescriptionConstructs 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
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WSASException
public WSASException()Constructs a WSASException object; reason defaults to null and errorcode defaults to 0. -
WSASException
Constructs a WSASException object with the specified reason. errorcode defaults to 0.- Parameters:
reason
- the reason
-
WSASException
Constructs a WSASException object with the specified reason and errorcode.- Parameters:
reason
- the reasonerrorcode
- the error code
-
WSASException
Constructs a WSASException object with the specified reason and object. -
WSASException
Constructs a WSASException object with the specified object.
-
-
Method Details
-
getErrorCode
public final int getErrorCode()- Returns:
- the errorcode associated with this exception.
-
getData
- Returns:
- the data object associated with this exception.
-