org.xins.client.StandardErrorCodeException Maven / Gradle / Ivy
/*
* $Id: StandardErrorCodeException.java,v 1.8 2007/03/12 10:40:45 agoubard Exp $
*
* Copyright 2003-2007 Orange Nederland Breedband B.V.
* See the COPYRIGHT file for redistribution and use restrictions.
*/
package org.xins.client;
import org.xins.common.service.TargetDescriptor;
/**
* Abstract base class for exceptions that indicate that a standard error code
* was returned from the server-side. Standard error codes all start with an
* underscore, e.g. _InternalError.
*
* @version $Revision: 1.8 $ $Date: 2007/03/12 10:40:45 $
* @author Ernst de Haan
*
* @since XINS 1.2.0
*/
public abstract class StandardErrorCodeException
extends UnsuccessfulXINSCallException {
/**
* Constructs a new StandardErrorCodeException
.
*
* @param request
* the original request, cannot be null
.
*
* @param target
* descriptor for the target that was attempted to be called, cannot be
* null
.
*
* @param duration
* the call duration in milliseconds, must be >= 0.
*
* @param resultData
* the result data, cannot be null
.
*
* @param detail
* detail message, or null
.
*
* @throws IllegalArgumentException
* if request == null
* || target == null
* || duration < 0
* || resultData == null
* || resultData.{@link XINSCallResult#getErrorCode()
* getErrorCode()} == null
.
*/
StandardErrorCodeException(XINSCallRequest request,
TargetDescriptor target,
long duration,
XINSCallResultData resultData,
String detail)
throws IllegalArgumentException {
super(request, target, duration, resultData, detail);
}
}