01: /*
02: * $Id: AbstractCAPIErrorCodeException.java,v 1.12 2007/03/12 10:40:42 agoubard Exp $
03: *
04: * Copyright 2003-2007 Orange Nederland Breedband B.V.
05: * See the COPYRIGHT file for redistribution and use restrictions.
06: */
07: package org.xins.client;
08:
09: import org.xins.common.service.TargetDescriptor;
10:
11: /**
12: * Abstract base class for generated CAPI exceptions that map to an
13: * API-specific error code.
14: *
15: * <p>This class should not be derived from directly. Only generated CAPI
16: * classes should derive from this class.
17: *
18: * @version $Revision: 1.12 $ $Date: 2007/03/12 10:40:42 $
19: * @author <a href="mailto:ernst@ernstdehaan.com">Ernst de Haan</a>
20: */
21: public abstract class AbstractCAPIErrorCodeException extends
22: UnsuccessfulXINSCallException {
23:
24: /**
25: * Constructs a new <code>AbstractCAPIErrorCodeException</code>.
26: *
27: * @param request
28: * the original request, cannot be <code>null</code>.
29: *
30: * @param target
31: * descriptor for the target that was attempted to be called, cannot be
32: * <code>null</code>.
33: *
34: * @param duration
35: * the call duration in milliseconds, must be >= 0.
36: *
37: * @param resultData
38: * the result data, cannot be <code>null</code>.
39: *
40: * @throws IllegalArgumentException
41: * if <code>request == null
42: * || target == null
43: * || duration < 0
44: * || resultData == null
45: * || resultData.{@link XINSCallResult#getErrorCode() getErrorCode()} == null</code>.
46: */
47: protected AbstractCAPIErrorCodeException(XINSCallRequest request,
48: TargetDescriptor target, long duration,
49: XINSCallResultData resultData)
50: throws IllegalArgumentException {
51: super(request, target, duration, resultData, null);
52: }
53: }
|