KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > yan > NonReadablePropertyException


1 /*****************************************************************************
2  * Copyright (C) Zephyr Business Solution. 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 /*
10  * Created on Apr 22, 2005
11  *
12  * Author Ben Yu
13  * ZBS
14  */

15 package jfun.yan;
16
17 import jfun.util.Misc;
18
19
20 /**
21  * Represents an exception when a bean component tries to read a property
22  * that is not readable.
23  * <p>
24  * Codehaus.org.
25  *
26  * @author Ben Yu
27  *
28  */

29 public class NonReadablePropertyException extends InvalidPropertyException {
30
31   /**
32    * Create a NonReadablePropertyException object.
33    * @param type the property type.
34    * @param name the property name.
35    */

36   public NonReadablePropertyException(Class JavaDoc type, String JavaDoc name) {
37     super(type, name,
38         "property " + name + " not readable in type "+Misc.getTypeName(type));
39
40   }
41   /**
42    * Create a NonReadablePropertyException object.
43    * @param type the property type.
44    * @param name the property name.
45    * @param msg the error message.
46    */

47   public NonReadablePropertyException(Class JavaDoc type, String JavaDoc name, String JavaDoc msg) {
48     super(type, name, msg);
49
50   }
51 }
52
53
Popular Tags