Package org.onebusaway.exceptions

Examples of org.onebusaway.exceptions.NoSuchStopServiceException


    StopEntry stop = _transitGraphDao.getStopEntryForId(id);
    StopNarrative narrative = _narrativeService.getStopForId(id);

    if (stop == null)
      throw new NoSuchStopServiceException(
          AgencyAndIdLibrary.convertToString(id));

    StopBean sb = new StopBean();
    fillStopBean(stop, narrative, sb);
    fillRoutesForStopBean(stop, sb);
View Full Code Here


  @Override
  public StopEntry getStopEntryForId(AgencyAndId id,
      boolean throwExceptionIfNotFound) {
    StopEntry stop = _graph.getStopEntryForId(id);
    if (stop == null && throwExceptionIfNotFound)
      throw new NoSuchStopServiceException(
          AgencyAndIdLibrary.convertToString(id));
    return stop;
  }
View Full Code Here

   ****/

  private void checkForEmptyResult() {
    if (_result == null) {
      if (_stopIds.size() == 1)
        throw new NoSuchStopServiceException(_stopIds.get(0));
      else
        throw new NoSuchStopServiceException(_stopIds.toString());
    }
  }
View Full Code Here

      return INPUT;

    _result = _service.getScheduleForStop(_id, _date);

    if (_result == null)
      throw new NoSuchStopServiceException(_id);

    StopCalendarDaysBean days = _result.getCalendarDays();
    String tzName = days.getTimeZone();
    _timeZone = TimeZone.getTimeZone(tzName);
    if (_timeZone == null)
View Full Code Here

TOP

Related Classes of org.onebusaway.exceptions.NoSuchStopServiceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.