01: /*
02: * $Id: StandardErrorCodeException.java,v 1.8 2007/03/12 10:40:45 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 exceptions that indicate that a standard error code
13: * was returned from the server-side. Standard error codes all start with an
14: * underscore, e.g. <em>_InternalError</em>.
15: *
16: * @version $Revision: 1.8 $ $Date: 2007/03/12 10:40:45 $
17: * @author <a href="mailto:ernst@ernstdehaan.com">Ernst de Haan</a>
18: *
19: * @since XINS 1.2.0
20: */
21: public abstract class StandardErrorCodeException extends
22: UnsuccessfulXINSCallException {
23:
24: /**
25: * Constructs a new <code>StandardErrorCodeException</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: * @param detail
41: * detail message, or <code>null</code>.
42: *
43: * @throws IllegalArgumentException
44: * if <code>request == null
45: * || target == null
46: * || duration < 0
47: * || resultData == null
48: * || resultData.{@link XINSCallResult#getErrorCode()
49: * getErrorCode()} == null</code>.
50: */
51: StandardErrorCodeException(XINSCallRequest request,
52: TargetDescriptor target, long duration,
53: XINSCallResultData resultData, String detail)
54: throws IllegalArgumentException {
55: super(request, target, duration, resultData, detail);
56: }
57: }
|