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

org.onebusaway.gtfs.csv.exceptions.NoSuchPropertyException Maven / Gradle / Ivy

There is a newer version: 1.3.4
Show newest version
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