Class AgencyNotFoundForRouteException

All Implemented Interfaces:
Serializable

public class AgencyNotFoundForRouteException extends CsvEntityException
Error indicating that there was a problem finding the appropriate Agency instance to set in a call to Route.setAgency(Agency). When parsing a route from csv, we look at the "agency_id" field first. If it isn't empty, we look for an agency with the specified id. This exception is throw if an agency with the specified id could not be found. If no "agency_id" field is specified in the csv, we next use the id specified by GtfsReaderContext.getDefaultAgencyId(). If no default agencyId is specified, or an agency with the specified id cannot be found, we throw this exception.
Author:
bdferris
See Also:
  • Constructor Details

    • AgencyNotFoundForRouteException

      public AgencyNotFoundForRouteException(Class<?> entityType, Route route, String agencyId)
    • AgencyNotFoundForRouteException

      public AgencyNotFoundForRouteException(Class<?> entityType, Route route)
  • Method Details

    • getRoute

      public Route getRoute()
    • getAgencyId

      public String getAgencyId()