01: /*
02: * $Id: TotalTimeOutCallException.java,v 1.19 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 the total time-out for a request was reached, so
11: * the request was aborted.
12: *
13: * @version $Revision: 1.19 $ $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 TotalTimeOutCallException extends
19: GenericCallException {
20:
21: /**
22: * Constructs a new <code>TotalTimeOutCallException</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 TotalTimeOutCallException(CallRequest request,
40: TargetDescriptor target, long duration)
41: throws IllegalArgumentException {
42:
43: // Call constructor of superclass
44: super ("Total time-out", request, target, duration, null, null);
45: }
46: }
|