01: /*
02: * $Id: SocketTimeOutCallException.java,v 1.18 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 data was not received on a socket within a
11: * designated time-out period.
12: *
13: * @version $Revision: 1.18 $ $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 SocketTimeOutCallException 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 = 3960746542315816035L;
26:
27: /**
28: * Constructs a new <code>SocketTimeOutCallException</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: public SocketTimeOutCallException(CallRequest request,
46: TargetDescriptor target, long duration)
47: throws IllegalArgumentException {
48:
49: // Call constructor of superclass
50: super ("Socket time-out", request, target, duration, null, null);
51: }
52: }
|