All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xins.client.InternalErrorException Maven / Gradle / Ivy

There is a newer version: 3.0
Show newest version
/*
 * $Id: InternalErrorException.java,v 1.7 2006/08/28 09:12:31 agoubard Exp $
 *
 * Copyright 2003-2006 Orange Nederland Breedband B.V.
 * See the COPYRIGHT file for redistribution and use restrictions.
 */
package org.xins.client;

import org.xins.common.service.TargetDescriptor;

/**
 * Exception thrown to indicate a standard error code was received that
 * indicates a server-side internal error.
 *
 * @version $Revision: 1.7 $ $Date: 2006/08/28 09:12:31 $
 * @author Ernst de Haan
 *
 * @since XINS 1.2.0
 */
public class InternalErrorException
extends StandardErrorCodeException {

   //-------------------------------------------------------------------------
   // Constructors
   //-------------------------------------------------------------------------

   /**
    * Constructs a new InternalErrorException.
    *
    * @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.
    *
    * @throws IllegalArgumentException
    *    if request     == null
    *          || target      == null
    *          || duration  < 0
    *          || resultData  == null
    *          || resultData.{@link XINSCallResult#getErrorCode() getErrorCode()} == null.
    */
   InternalErrorException(XINSCallRequest    request,
                          TargetDescriptor   target,
                          long               duration,
                          XINSCallResultData resultData)
   throws IllegalArgumentException {
      super(request, target, duration, resultData, null);
   }


   //-------------------------------------------------------------------------
   // Methods
   //-------------------------------------------------------------------------

   // XXX: Add methods for retrieval of details?
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy