KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > arooa > reflect > ArooaPropertyException


1 /*
2  * (c) Rob Gordon 2005
3  */

4 package org.oddjob.arooa.reflect;
5
6 import org.oddjob.arooa.ArooaException;
7 import org.oddjob.arooa.Location;
8
9 /**
10  *
11  */

12 public class ArooaPropertyException extends ArooaException {
13     
14     public ArooaPropertyException(Object JavaDoc bean, String JavaDoc property, String JavaDoc tag, Location location, Throwable JavaDoc cause) {
15         super("Failed accessing property [" + property + "]" +
16                 (tag == null ? "" : " in element [" + tag + "] ") +
17                 (location == null ? "" : " (" + location + ") ") +
18                 (bean == null ? "" : " (" + bean.getClass().getName() + ")"),
19                         cause);
20     }
21
22     public ArooaPropertyException(Object JavaDoc bean, String JavaDoc property, Throwable JavaDoc cause) {
23         this(bean, property, null, null, cause);
24     }
25
26     public ArooaPropertyException(String JavaDoc property, Throwable JavaDoc cause) {
27         this(null, property, null, null, cause);
28     }
29 }
30
Popular Tags