
org.onebusaway.gtfs.csv.exceptions.MissingRequiredEntityException 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;
import org.onebusaway.gtfs.csv.schema.EntitySchema;
import org.onebusaway.gtfs.csv.schema.annotations.CsvFields;
import org.onebusaway.gtfs.csv.schema.beans.CsvEntityMappingBean;
/**
* Indicates that the specified entity type is marked as required, but no input
* file or source was found for that entity.
*
* @author bdferris
* @see EntitySchema#isRequired()
* @see CsvFields#required()
* @see CsvEntityMappingBean#isRequired()
*/
public class MissingRequiredEntityException extends CsvEntityException {
private static final long serialVersionUID = 1L;
private String _fileName;
public MissingRequiredEntityException(Class> entityType, String fileName) {
super(entityType, "missing required entity: type=" + entityType.getName()
+ " filename=" + fileName);
_fileName = fileName;
}
public String getFileName() {
return _fileName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy