/** * This method returns all the explicitly added errors and the errors of all paths. */ public List<Throwable> getErrors() { List<Throwable> list = new ArrayList<>(); list.addAll(errors); for (PathWrapper ar : pathWrappers) { list.addAll(ar.getErrors()); } return list; }
private void check(String method) { if (hasErrors()) { throw new RuntimeException("You cannot call " + method + " if response contains errors. Check this with ghResponse.hasErrors(). " + "Errors are: " + getErrors()); } }
+ ", expected points: " + oneRun + ". " + queryList + ", errors:" + rsp.getErrors()); return this;
protected void onPostExecute(PathWrapper resp) { if (!resp.hasErrors()) { log("from:" + fromLat + "," + fromLon + " to:" + toLat + "," + toLon + " found path with distance:" + resp.getDistance() / 1000f + ", nodes:" + resp.getPoints().getSize() + ", time:" + time + " " + resp.getDebugInfo()); logUser("the route is " + (int) (resp.getDistance() / 100) / 10f + "km long, time:" + resp.getTime() / 60000f + "min, debug:" + time); pathLayer = createPathLayer(resp); mapView.map().layers().add(pathLayer); mapView.map().updateMap(true); } else { logUser("Error:" + resp.getErrors()); } shortestPathRunning = false; } }.execute();
/** * This method returns all the explicitly added errors and the errors of all paths. */ public List<Throwable> getErrors() { List<Throwable> list = new ArrayList<Throwable>(); list.addAll(errors); for (PathWrapper ar : pathWrappers) { list.addAll(ar.getErrors()); } return list; }
/** * This method returns all the explicitly added errors and the errors of all paths. */ public List<Throwable> getErrors() { List<Throwable> list = new ArrayList<>(); list.addAll(errors); for (PathWrapper ar : pathWrappers) { list.addAll(ar.getErrors()); } return list; }
/** * This method returns all the explicitely added errors and the errors of all paths. */ public List<Throwable> getErrors() { List<Throwable> list = new ArrayList<Throwable>(); list.addAll(errors); for (PathWrapper ar : pathWrappers) { list.addAll(ar.getErrors()); } return list; }
private void check(String method) { if (hasErrors()) { throw new RuntimeException("You cannot call " + method + " if response contains errors. Check this with ghResponse.hasErrors(). " + "Errors are: " + getErrors()); } }
private void check(String method) { if (hasErrors()) { throw new RuntimeException("You cannot call " + method + " if response contains errors. Check this with ghResponse.hasErrors(). " + "Errors are: " + getErrors()); } }
private void check( String method ) { if (hasErrors()) { throw new RuntimeException("You cannot call " + method + " if response contains errors. Check this with ghResponse.hasErrors(). " + "Errors are: " + getErrors()); } }
pathWrapper.getErrors().clear(); GHResponse rsp = new GHResponse(); rsp.add(pathWrapper);
+ ", expected points: " + oneRun + ". " + queryList + ", errors:" + rsp.getErrors()); return this;
+ ", expected points: " + oneRun + ". " + queryList + ", errors:" + rsp.getErrors()); return this;
+ ", expected points: " + oneRun + ". " + queryList + ", errors:" + rsp.getErrors()); return this;