package org.theonefx.wcframework.ioc.exception;
/**
* Exception thrown on an attempt to get the value of a property
* that isn't readable, because there's no getter method.
*/
public class NotReadablePropertyException extends InvalidPropertyException {
private static final long serialVersionUID = 341428860061201223L;
/**
* Create a new NotReadablePropertyException.
* @param beanClass the offending bean class
* @param propertyName the offending property
*/
public NotReadablePropertyException(Class<?> beanClass, String propertyName) {
super(beanClass, propertyName,
"Bean property '" + propertyName + "' is not readable or has an invalid getter method: " +
"Does the return type of the getter match the parameter type of the setter?");
}
/**
* Create a new NotReadablePropertyException.
* @param beanClass the offending bean class
* @param propertyName the offending property
* @param msg the detail message
*/
public NotReadablePropertyException(Class<?> beanClass, String propertyName, String msg) {
super(beanClass, propertyName, msg);
}
}