01: /*
02: * $Id: ParameterNotInitializedException.java,v 1.15 2007/09/18 08:45:05 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.server;
08:
09: import org.xins.common.MandatoryArgumentChecker;
10:
11: /**
12: * Exception that indicates that it is attempted to get the value of a
13: * parameter that has not been set.
14: *
15: * @version $Revision: 1.15 $ $Date: 2007/09/18 08:45:05 $
16: * @author <a href="mailto:anthony.goubard@japplis.com">Anthony Goubard</a>
17: *
18: * @since XINS 1.0.0
19: */
20: public class ParameterNotInitializedException extends RuntimeException {
21:
22: /**
23: * Constructs a new <code>ParameterNotInitializedException</code> for the
24: * specified parameter.
25: *
26: * @param paramName
27: * the name of the parameter that is attempted to be retrieved, cannot
28: * be <code>null</code>.
29: *
30: * @throws IllegalArgumentException
31: * if <code>paramName == null</code>.
32: */
33: public ParameterNotInitializedException(String paramName)
34: throws IllegalArgumentException {
35: super (paramName);
36:
37: // Check argument
38: MandatoryArgumentChecker.check("paramName", paramName);
39: }
40: }
|