View Javadoc

1   /**
2    * Copyright 2005-2006 the original author or authors.
3    *
4    * Licensed under the Gnu General Pubic License, Version 2.0 (the
5    * "License"); you may not use this file except in compliance with
6    * the License. You may obtain a copy of the License at
7    *
8    *      http://www.opensource.org/licenses/gpl-license.php
9    *
10   * This program is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13   * See the Gnu General Public License for more details.
14   */
15  package org.figure8.join.core;
16  
17  /**
18   * Extension of Exception thrown when a supplied parameter is not valid.
19   * (then you have to read the Join documentation to check the constraints ;-))
20   * @author <a href="mailto:laurent.broudoux@free.fr">Laurent Broudoux</a>
21   * @version $Revision: 1.2 $
22   */
23  public class InvalidParameterException extends Exception{
24  
25     // Constructors -------------------------------------------------------------
26  
27     /**
28      * Creates a new instance of InvalidParameterException.
29      * @param msg Message for this exception
30      */
31     public InvalidParameterException(String msg){
32        super(msg);
33     }
34  
35     /**
36      * Creates a new instance of InvalidParameterException.
37      * @param cause Root throwable for this exception
38      */
39     public InvalidParameterException(Throwable cause){
40        super(cause);
41     }
42  
43     /**
44      * Creates a new instance of InvalidParameterException.
45      * @param msg Message for this exception
46      * @param cause Root throwable for this exception
47      */
48     public InvalidParameterException(String msg, Throwable cause){
49        super(msg, cause);
50     }
51  }