Class AgencyNotFoundForRouteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.onebusaway.csv_entities.exceptions.CsvException
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:
-
Constructor Summary
ConstructorsConstructorDescriptionAgencyNotFoundForRouteException(Class<?> entityType, Route route) AgencyNotFoundForRouteException(Class<?> entityType, Route route, String agencyId) -
Method Summary
Methods inherited from class org.onebusaway.csv_entities.exceptions.CsvEntityException
getEntityTypeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AgencyNotFoundForRouteException
-
AgencyNotFoundForRouteException
-
-
Method Details
-
getRoute
-
getAgencyId
-