Changeset 2181 in josm for trunk/src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java
- Timestamp:
- 2009-09-22T15:34:19+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java
r2077 r2181 112 112 protected void remember(DataSet ds, long id, OsmPrimitiveType type) throws IllegalArgumentException, NoSuchElementException{ 113 113 if (ds == null) 114 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "ds"));114 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "ds")); 115 115 if (id <= 0) return; 116 116 OsmPrimitive primitive = ds.getPrimitiveById(id, type); 117 117 if (primitive == null) 118 throw new NoSuchElementException(tr(" no primitive with id {0} in local dataset. Can't infer primitive type", id));118 throw new NoSuchElementException(tr("No primitive with id {0} in local dataset. Can't infer primitive type.", id)); 119 119 remember(id, OsmPrimitiveType.from(primitive)); 120 120 return; … … 414 414 } catch(OsmApiException e) { 415 415 if (e.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) { 416 logger.warning(tr("Server replied with response code 404, retrying with an individual request for each primitive "));416 logger.warning(tr("Server replied with response code 404, retrying with an individual request for each primitive.")); 417 417 singleGetIdPackage(type, pkg, progressMonitor); 418 418 } else
Note:
See TracChangeset
for help on using the changeset viewer.