KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > yan > IllegalPropertyNameException


1 /*****************************************************************************
2  * Copyright (C) Codehaus.org. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  *****************************************************************************/

8 /*
9  * Created on Mar 7, 2005
10  *
11  * Author Ben Yu
12  * ZBS
13  */

14 package jfun.yan;
15
16 import jfun.util.Misc;
17
18 /**
19  * Represents the error when a property name is illegal.
20  * <p>
21  * Codehaus.org.
22  *
23  * @author Ben Yu
24  *
25  */

26 public class IllegalPropertyNameException extends InvalidPropertyException {
27
28   /**
29    * Create an IllegalPropertyNameException object.
30    * @param type the component type.
31    * @param name the property name.
32    * @param msg the error message.
33    */

34   public IllegalPropertyNameException(Class JavaDoc type, String JavaDoc name, String JavaDoc msg) {
35     super(type, name, msg);
36   }
37
38
39   /**
40    * Create an IllegalPropertyNameException object.
41    * @param type the component type.
42    * @param name the property name.
43    */

44   public IllegalPropertyNameException(Class JavaDoc type, String JavaDoc name) {
45     super(type, name, "invalid property name: " + name + " in type "
46         +Misc.getTypeName(type));
47   }
48 }
49
Popular Tags