Package org.opentripplanner.routing.error

Examples of org.opentripplanner.routing.error.GraphNotFoundException


     * @param findPlaces if true, compute origin and target from RoutingRequest using spatial indices.
     */
    private RoutingContext(RoutingRequest routingRequest, Graph graph, Vertex from, Vertex to,
            boolean findPlaces) {
        if (graph == null) {
            throw new GraphNotFoundException();
        }
        this.opt = routingRequest;
        this.graph = graph;
        this.debugOutput.startedCalculating();

View Full Code Here


         * we should be safe.
         */
        GraphSource graphSource = graphSources.get(routerId);
        if (graphSource == null) {
            LOG.error("no graph registered with the routerId '{}'", routerId);
            throw new GraphNotFoundException();
        }
        Graph graph = graphSource.getGraph();
        if (graph == null) {
            evictGraph(routerId);
            throw new GraphNotFoundException();
        }
        return graph;
    }
View Full Code Here

TOP

Related Classes of org.opentripplanner.routing.error.GraphNotFoundException

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.