org.xins.client
Class AbstractCAPIErrorCodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.xins.common.service.CallException
org.xins.client.XINSCallException
org.xins.client.UnsuccessfulXINSCallException
org.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.
- Version:
- $Revision: 1.9 $ $Date: 2006/08/28 09:12:31 $
- Author:
- Ernst de Haan
- See Also:
- Serialized Form
AbstractCAPIErrorCodeException
protected AbstractCAPIErrorCodeException(XINSCallRequest request,
TargetDescriptor target,
long duration,
XINSCallResultData resultData)
throws IllegalArgumentException
- Constructs a new
AbstractCAPIErrorCodeException
.
- Parameters:
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
.
- Throws:
IllegalArgumentException
- if request == null
|| target == null
|| duration < 0
|| resultData == null
|| resultData.getErrorCode()
== null
.
See http://www.xins.org/.