1 4 package org.oddjob.arooa.reflect; 5 6 import org.oddjob.arooa.ArooaException; 7 import org.oddjob.arooa.Location; 8 9 12 public class ArooaPropertyException extends ArooaException { 13 14 public ArooaPropertyException(Object bean, String property, String tag, Location location, Throwable 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 bean, String property, Throwable cause) { 23 this(bean, property, null, null, cause); 24 } 25 26 public ArooaPropertyException(String property, Throwable cause) { 27 this(null, property, null, null, cause); 28 } 29 } 30 | Popular Tags |