Class NoDefaultAgencyIdException
- 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.NoDefaultAgencyIdException
-
- All Implemented Interfaces:
Serializable
public class NoDefaultAgencyIdException extends org.onebusaway.csv_entities.exceptions.CsvEntityExceptionIndicates that no default agency id (seeGtfsReaderContext.getDefaultAgencyId()was specified for a particular feed. Recall thatGtfsReaderwill attempt to fill in theAgencyAndId.setAgencyId(String)agencyId value for all entities loaded by the reader so as to make entity ids unique across feeds. For entities such asRouteandTrip, the agency id will be resolved automatically to any referencedAgencyin theRoute. However, for all other entities, we need some agency id. By default, theAgency.getId()of the firstAgencyloaded by the reader will be used. However, you may also specify a default agency with a call toGtfsReader.setDefaultAgencyId(String).- Author:
- bdferris
- See Also:
GtfsReaderContext.getDefaultAgencyId(),GtfsReader.setDefaultAgencyId(String), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NoDefaultAgencyIdException()
-
Method Summary
-
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
-
-