Back to project page NexusData.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCT...
If you think the Android project NexusData listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.dkharrat.nexusdata.core; /*from ww w . j a v a2 s .c om*/ import com.github.dkharrat.nexusdata.metamodel.Entity; /** * This exception is thrown when a non-existent property is accessed. */ public class NoSuchPropertyException extends RuntimeException { private String propertyName; public NoSuchPropertyException(ManagedObject object, String propertyName) { super("No such property '" + propertyName + "' in object " + object); this.propertyName = propertyName; } public NoSuchPropertyException(Entity<?> entity, String propertyName) { super("No such property '" + propertyName + "' in entity " + entity); this.propertyName = propertyName; } /** * Returns the name of the property that was attempted to be accessed. * @return the name of the property that was attempted to be accessed */ public String getPropertyName() { return propertyName; } }