01: /*
02: * $Id: InternalErrorException.java,v 1.10 2007/03/12 10:40:45 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.client;
08:
09: import org.xins.common.service.TargetDescriptor;
10:
11: /**
12: * Exception thrown to indicate a standard error code was received that
13: * indicates a server-side internal error.
14: *
15: * @version $Revision: 1.10 $ $Date: 2007/03/12 10:40:45 $
16: * @author <a href="mailto:ernst@ernstdehaan.com">Ernst de Haan</a>
17: *
18: * @since XINS 1.2.0
19: */
20: public class InternalErrorException extends StandardErrorCodeException {
21:
22: /**
23: * Constructs a new <code>InternalErrorException</code>.
24: *
25: * @param request
26: * the original request, cannot be <code>null</code>.
27: *
28: * @param target
29: * descriptor for the target that was attempted to be called, cannot be
30: * <code>null</code>.
31: *
32: * @param duration
33: * the call duration in milliseconds, must be >= 0.
34: *
35: * @param resultData
36: * the result data, cannot be <code>null</code>.
37: *
38: * @throws IllegalArgumentException
39: * if <code>request == null
40: * || target == null
41: * || duration < 0
42: * || resultData == null
43: * || resultData.{@link XINSCallResult#getErrorCode() getErrorCode()} == null</code>.
44: */
45: InternalErrorException(XINSCallRequest request,
46: TargetDescriptor target, long duration,
47: XINSCallResultData resultData)
48: throws IllegalArgumentException {
49: super (request, target, duration, resultData, null);
50: }
51:
52: // XXX: Add methods for retrieval of details?
53: }
|