01: /*
02: * $Id: NoRouteToHostCallException.java,v 1.8 2007/03/12 10:40:50 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 because no network route could be found to the host.
12: *
13: * @version $Revision: 1.8 $ $Date: 2007/03/12 10:40:50 $
14: * @author <a href="mailto:ernst@ernstdehaan.com">Ernst de Haan</a>
15: *
16: * @since XINS 1.3.0
17: */
18: public final class NoRouteToHostCallException extends
19: ConnectionCallException {
20:
21: /**
22: * Constructs a new <code>NoRouteToHostCallException</code>.
23: *
24: * @param request
25: * the original request, cannot be <code>null</code>.
26: *
27: * @param target
28: * descriptor for the target that was attempted to be called, cannot be
29: * <code>null</code>.
30: *
31: * @param duration
32: * the call duration in milliseconds, must be >= 0.
33: *
34: * @throws IllegalArgumentException
35: * if <code>request == null
36: * || target == null
37: * || duration < 0</code>.
38: */
39: public NoRouteToHostCallException(CallRequest request,
40: TargetDescriptor target, long duration)
41: throws IllegalArgumentException {
42:
43: // Trace and then call constructor of superclass
44: super ("No route to host", request, target, duration, null, null);
45: }
46: }
|