All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.juffrou.reflect.error.InvalidPropertyException Maven / Gradle / Ivy

Go to download

Performant java bean access through property names. If you are serious about bean handling, this is for you.

There is a newer version: 2.1.9
Show newest version
package net.sf.juffrou.reflect.error;

public class InvalidPropertyException extends ReflectionException {

	private static final long serialVersionUID = -6922159731513540328L;
	
	private final Class clazz;
	private final String propertyName;

	public InvalidPropertyException(Class clazz, String propertyName) {
		super("The class " + clazz.getName() + " does not have a field with name " + propertyName);
		this.clazz = clazz;
		this.propertyName = propertyName;
	}

	public InvalidPropertyException(Class clazz, String propertyName, Throwable reason) {
		super("The class " + clazz.getName() + " does not have a field with name " + propertyName, reason);
		this.clazz = clazz;
		this.propertyName = propertyName;
	}

	public Class getClazz() {
		return clazz;
	}

	public String getPropertyName() {
		return propertyName;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy