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.CsvEntityExceptionError indicating that there was a problem finding the appropriateAgencyinstance to set in a call toRoute.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 byGtfsReaderContext.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
-
-
Constructor Summary
Constructors Constructor Description AgencyNotFoundForRouteException(Class<?> entityType, Route route)AgencyNotFoundForRouteException(Class<?> entityType, Route route, String agencyId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAgencyId()RoutegetRoute()-
Methods inherited from class org.onebusaway.csv_entities.exceptions.CsvEntityException
getEntityType
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-