Class AbstractCAPIErrorCodeException

  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.xins.common.service.CallException
              extended byorg.xins.client.XINSCallException
                  extended byorg.xins.client.UnsuccessfulXINSCallException
                      extended byorg.xins.client.AbstractCAPIErrorCodeException
All Implemented Interfaces:
Serializable, XINSCallResultData

public abstract class AbstractCAPIErrorCodeException
extends UnsuccessfulXINSCallException

Abstract base class for generated CAPI exceptions that map to an API-specific error code.

This class should not be derived from directly. Only generated CAPI classes should derive from this class.

$Revision: 1.9 $ $Date: 2006/08/28 09:12:31 $
Ernst de Haan
See Also:
Serialized Form

Constructor Summary
protected AbstractCAPIErrorCodeException(XINSCallRequest request, TargetDescriptor target, long duration, XINSCallResultData resultData)
          Constructs a new AbstractCAPIErrorCodeException.
Methods inherited from class org.xins.client.UnsuccessfulXINSCallException
getDataElement, getErrorCode, getParameter, getParameters, getType
Methods inherited from class org.xins.common.service.CallException
getDetail, getDuration, getMessage, getNext, getRequest, getTarget
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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


protected AbstractCAPIErrorCodeException(XINSCallRequest request,
                                         TargetDescriptor target,
                                         long duration,
                                         XINSCallResultData resultData)
                                  throws IllegalArgumentException
Constructs a new AbstractCAPIErrorCodeException.

request - the original request, cannot be null.
target - descriptor for the target that was attempted to be called, cannot be null.
duration - the call duration in milliseconds, must be >= 0.
resultData - the result data, cannot be null.
IllegalArgumentException - if request == null || target == null || duration < 0 || resultData == null || resultData.getErrorCode() == null.