
org.onebusaway.gtfs.csv.exceptions.NoSuchPropertyException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of onebusaway-gtfs Show documentation
Show all versions of onebusaway-gtfs Show documentation
A Java library for reading and writing General Transit Feed Spec feeds
package org.onebusaway.gtfs.csv.exceptions;
/**
* Indicates that the specified entity type does not have a property with the
* given name, or that there was an error examining the property.
*
* @author bdferris
*/
public class NoSuchPropertyException extends CsvEntityException {
private static final long serialVersionUID = 1L;
private String _propertyName;
public NoSuchPropertyException(Class> entityType, String propertyName) {
super(entityType, "no such property \"" + propertyName + "\" for type "
+ entityType.getName());
_propertyName = propertyName;
}
public NoSuchPropertyException(Class> entityType, String propertyName,
Exception ex) {
super(entityType, "no such property \"" + propertyName + "\" for type "
+ entityType.getName(), ex);
_propertyName = propertyName;
}
public String getPropertyName() {
return _propertyName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy