1 16 17 package org.springframework.beans; 18 19 26 public class InvalidPropertyException extends FatalBeanException { 27 28 private Class beanClass; 29 30 private String propertyName; 31 32 33 39 public InvalidPropertyException(Class beanClass, String propertyName, String msg) { 40 this(beanClass, propertyName, msg, null); 41 } 42 43 50 public InvalidPropertyException(Class beanClass, String propertyName, String msg, Throwable cause) { 51 super("Invalid property '" + propertyName + "' of bean class [" + beanClass.getName() + "]: " + msg, cause); 52 this.beanClass = beanClass; 53 this.propertyName = propertyName; 54 } 55 56 59 public Class getBeanClass() { 60 return beanClass; 61 } 62 63 66 public String getPropertyName() { 67 return propertyName; 68 } 69 70 } 71 | Popular Tags |