Changeset 10469 in josm for trunk/src/org/openstreetmap/josm/data/cache
- Timestamp:
- 2016-06-24T01:27:35+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/cache
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/CacheEntryAttributes.java
r10378 r10469 188 188 189 189 /** 190 * @param error error related to this object 191 * @since 10469 192 */ 193 public void setError(Exception error) { 194 setErrorMessage(Main.getErrorMessage(error)); 195 } 196 197 /** 190 198 * @param message error message related to this object 191 199 */ -
trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
r10408 r10469 378 378 log.log(Level.FINE, "JCS - Caching empty object as server returned 404 for: {0}", getUrlNoException()); 379 379 attributes.setResponseCode(404); 380 attributes.setError Message(e.toString());380 attributes.setError(e); 381 381 boolean doCache = isResponseLoadable(null, 404, null) || cacheAsEmpty(); 382 382 if (doCache) { … … 387 387 } catch (IOException e) { 388 388 log.log(Level.FINE, "JCS - IOExecption during communication with server for: {0}", getUrlNoException()); 389 attributes.setError Message(e.toString());389 attributes.setError(e); 390 390 attributes.setResponseCode(499); // set dummy error code 391 391 boolean doCache = isResponseLoadable(null, 499, null) || cacheAsEmpty(); //generic 499 error code returned … … 396 396 return doCache; 397 397 } catch (InterruptedException e) { 398 attributes.setError Message(e.toString());398 attributes.setError(e); 399 399 log.log(Level.WARNING, "JCS - Exception during download {0}", getUrlNoException()); 400 400 Main.warn(e);
Note:
See TracChangeset
for help on using the changeset viewer.