01: /*
02: * $Id: GenericCallException.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: * Generic call exception, not related to any particular kind of service.
11: *
12: * @version $Revision: 1.17 $ $Date: 2007/03/12 10:40:49 $
13: * @author <a href="mailto:ernst@ernstdehaan.com">Ernst de Haan</a>
14: *
15: * @since XINS 1.0.0
16: */
17: public abstract class GenericCallException extends CallException {
18:
19: /**
20: * Constructs a new <code>GenericCallException</code> based on a short
21: * reason, the original request, target called, call duration, detail
22: * message and cause exception.
23: *
24: * @param shortReason
25: * the short reason, cannot be <code>null</code>.
26: *
27: * @param request
28: * the original request, cannot be <code>null</code>.
29: *
30: * @param target
31: * descriptor for the target that was attempted to be called, cannot be
32: * <code>null</code>.
33: *
34: * @param duration
35: * the call duration in milliseconds, must be >= 0.
36: *
37: * @param detail
38: * a detailed description of the problem, can be <code>null</code> if
39: * there is no more detail.
40: *
41: * @param cause
42: * the cause exception, can be <code>null</code>.
43: *
44: * @throws IllegalArgumentException
45: * if <code>shortReason == null
46: * || request == null
47: * || target == null
48: * || duration < 0</code>.
49: */
50: GenericCallException(String shortReason, CallRequest request,
51: TargetDescriptor target, long duration, String detail,
52: Throwable cause) throws IllegalArgumentException {
53:
54: // Trace and then call constructor of superclass
55: super(shortReason, request, target, duration, detail, cause);
56: }
57: }
|