01: /*
02: * $Id: ConnectionCallException.java,v 1.16 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.
12: *
13: * @version $Revision: 1.16 $ $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 abstract class ConnectionCallException extends
19: GenericCallException {
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 = -331358001038403428L;
26:
27: /**
28: * Constructs a new <code>ConnectionCallException</code>.
29: *
30: * @param shortReason
31: * the short reason, cannot be <code>null</code>.
32: *
33: * @param request
34: * the original request, cannot be <code>null</code>.
35: *
36: * @param target
37: * descriptor for the target that was attempted to be called, cannot be
38: * <code>null</code>.
39: *
40: * @param duration
41: * the call duration in milliseconds, must be >= 0.
42: *
43: * @param detail
44: * a detailed description of the problem, can be <code>null</code> if
45: * there is no more detail.
46: *
47: * @param cause
48: * the cause exception, can be <code>null</code>.
49: *
50: * @throws IllegalArgumentException
51: * if <code>shortReason == null
52: * || request == null
53: * || target == null
54: * || duration < 0</code>.
55: *
56: */
57: ConnectionCallException(String shortReason, CallRequest request,
58: TargetDescriptor target, long duration, String detail,
59: Throwable cause) throws IllegalArgumentException {
60:
61: // Trace and then call constructor of superclass
62: super(shortReason, request, target, duration, detail, cause);
63: }
64: }
|