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

org.xins.server.ParameterNotInitializedException Maven / Gradle / Ivy

The newest version!
/*
 * $Id: ParameterNotInitializedException.java,v 1.17 2010/09/29 17:21:48 agoubard Exp $
 *
 * See the COPYRIGHT file for redistribution and use restrictions.
 */
package org.xins.server;

import org.xins.common.MandatoryArgumentChecker;

/**
 * Exception that indicates that it is attempted to get the value of a
 * parameter that has not been set.
 *
 * @version $Revision: 1.17 $ $Date: 2010/09/29 17:21:48 $
 * @author Anthony Goubard
 *
 * @since XINS 1.0.0
 */
public class ParameterNotInitializedException extends RuntimeException {

   /**
    * Constructs a new ParameterNotInitializedException for the
    * specified parameter.
    *
    * @param paramName
    *    the name of the parameter that is attempted to be retrieved, cannot
    *    be null.
    *
    * @throws IllegalArgumentException
    *    if paramName == null.
    */
   public ParameterNotInitializedException(String paramName)
   throws IllegalArgumentException {
      super(paramName);

      // Check argument
      MandatoryArgumentChecker.check("paramName", paramName);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy