org.onebusaway.gtfs.serialization.mappings
Class AgencyNotFoundForRouteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.onebusaway.csv_entities.exceptions.CsvEntityException
org.onebusaway.gtfs.serialization.mappings.AgencyNotFoundForRouteException
- All Implemented Interfaces:
- Serializable
public class AgencyNotFoundForRouteException
- extends org.onebusaway.csv_entities.exceptions.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:
- Serialized Form
| Methods inherited from class org.onebusaway.csv_entities.exceptions.CsvEntityException |
getEntityType |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
AgencyNotFoundForRouteException
public AgencyNotFoundForRouteException(Class<?> entityType,
Route route,
String agencyId)
getRoute
public Route getRoute()
getAgencyId
public String getAgencyId()
Copyright © 2011 OneBusAway. All Rights Reserved.