01: /*
02: * $Id: DisabledFunctionException.java,v 1.8 2007/03/12 10:40:41 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: * Exception thrown to indicate that the called function has been disabled
13: * at the server-side.
14: *
15: * @version $Revision: 1.8 $ $Date: 2007/03/12 10:40:41 $
16: * @author <a href="mailto:ernst@ernstdehaan.com">Ernst de Haan</a>
17: *
18: * @since XINS 1.2.0
19: */
20: public class DisabledFunctionException extends
21: StandardErrorCodeException {
22:
23: /**
24: * Constructs a new <code>DisabledFunctionException</code>.
25: *
26: * @param request
27: * the original request, cannot be <code>null</code>.
28: *
29: * @param target
30: * descriptor for the target that was attempted to be called, cannot be
31: * <code>null</code>.
32: *
33: * @param duration
34: * the call duration in milliseconds, must be >= 0.
35: *
36: * @param resultData
37: * the result data, cannot be <code>null</code>.
38: *
39: * @throws IllegalArgumentException
40: * if <code>request == null
41: * || target == null
42: * || duration < 0
43: * || resultData == null
44: * || resultData.{@link XINSCallResult#getErrorCode() getErrorCode()} == null</code>.
45: */
46: DisabledFunctionException(XINSCallRequest request,
47: TargetDescriptor target, long duration,
48: XINSCallResultData resultData)
49: throws IllegalArgumentException {
50: super(request, target, duration, resultData, null);
51: }
52: }
|