View Javadoc

1   package org.lcsim.recon.cat.util;
2   
3   /**
4    * Exception to be thrown by <tt>set(name,value)</tt> methods of various classes.
5    *
6    * @author D. Onoprienko
7    * @version $Id: NoSuchParameterException.java,v 1.1 2007/04/06 21:48:15 onoprien Exp $
8    */
9   public class NoSuchParameterException extends RuntimeException {
10    
11  // -- Constructors :  ----------------------------------------------------------
12    
13    public NoSuchParameterException() {
14      super("No such parameter name\n Method: set(name,value)");
15    }
16    
17    public NoSuchParameterException(String parName) {
18      super("No such parameter name: " + parName + "\n Method: set(name,value)");
19    }
20    
21    public NoSuchParameterException(String parName, Class cl) {
22      super("No such parameter name: " + parName + "\n Method: set(name,value)\n Class: " + cl.getName());
23    }
24    
25  }