Changeset 8342 in josm for trunk/src/org/openstreetmap/josm/gui/io
- Timestamp:
- 2015-05-09T12:49:35+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/AbstractUploadTask.java
r7299 r8342 320 320 if (e instanceof OsmApiException) { 321 321 OsmApiException ex = (OsmApiException)e; 322 // There was an upload conflict. Let the user decide whether323 // and how to resolve it324 //325 322 if(ex.getResponseCode() == HttpURLConnection.HTTP_CONFLICT) { 323 // There was an upload conflict. Let the user decide whether and how to resolve it 326 324 handleUploadConflict(ex); 327 325 return; 326 } else if (ex.getResponseCode() == HttpURLConnection.HTTP_PRECON_FAILED) { 327 // There was a precondition failed. Notify the user. 328 handlePreconditionFailed(ex); 329 return; 330 } else if (ex.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) { 331 // Tried to update or delete a primitive which never existed on the server? 332 ExceptionDialogUtil.explainNotFound(ex); 333 return; 328 334 } 329 // There was a precondition failed. Notify the user.330 //331 else if (ex.getResponseCode() == HttpURLConnection.HTTP_PRECON_FAILED) {332 handlePreconditionFailed(ex);333 return;334 }335 // Tried to update or delete a primitive which never existed on336 // the server?337 //338 else if (ex.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) {339 ExceptionDialogUtil.explainNotFound(ex);340 return;341 }342 335 } 343 336
Note:
See TracChangeset
for help on using the changeset viewer.