01: /*
02: * $Id: ConnectionRefusedCallException.java,v 1.17 2007/03/12 10:40:49 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.common.service;
08:
09: /**
10: * Exception that indicates that a connection to a service could not be
11: * established since it was refused.
12: *
13: * @version $Revision: 1.17 $ $Date: 2007/03/12 10:40:49 $
14: * @author <a href="mailto:ernst@ernstdehaan.com">Ernst de Haan</a>
15: *
16: * @since XINS 1.0.0
17: */
18: public final class ConnectionRefusedCallException extends
19: ConnectionCallException {
20:
21: /**
22: * Serial version UID. Used for serialization. The assigned value is for
23: * compatibility with XINS 1.2.5.
24: */
25: private static final long serialVersionUID = -7764503252933271908L;
26:
27: /**
28: * Constructs a new <code>ConnectionRefusedCallException</code>.
29: *
30: * @param request
31: * the original request, cannot be <code>null</code>.
32: *
33: * @param target
34: * descriptor for the target that was attempted to be called, cannot be
35: * <code>null</code>.
36: *
37: * @param duration
38: * the call duration in milliseconds, must be >= 0.
39: *
40: * @throws IllegalArgumentException
41: * if <code>request == null
42: * || target == null
43: * || duration < 0</code>.
44: *
45: */
46: public ConnectionRefusedCallException(CallRequest request,
47: TargetDescriptor target, long duration)
48: throws IllegalArgumentException {
49:
50: // Trace and then call constructor of superclass
51: super ("Connection refused", request, target, duration, null,
52: null);
53: }
54: }
|