Changeset 2240 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2009-10-03T16:57:49+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ExceptionUtil.java
r2228 r2240 277 277 */ 278 278 public static String explainGoneForUnknownPrimitive(OsmApiException e) { 279 String msg = tr("<html>Uploading <strong>failed</strong> because a primitive you tried to<br>" 280 + "delete on the server is already deleted.<br>" + "<br>" + "The error message is:<br>" + "{0}" 279 String msg = tr( 280 "<html>The server reports that an object is deleted.<br>" 281 + "<strong>Uploading failed</strong> if you tried to update or delete this object.<br> " 282 + "<strong>Downloading failed</strong> if you tried to download this object.<br>" 283 + "<br>" 284 + "The error message is:<br>" + "{0}" 281 285 + "</html>", e.getMessage().replace("&", "&").replace("<", "<").replace(">", ">")); 282 286 return msg; … … 290 294 */ 291 295 public static String explainException(Exception e) { 292 if (e instanceof OsmTransferException) 293 return explainOsmTransferException((OsmTransferException) e); 294 return explainGeneric(e); 296 String msg = ""; 297 if (e instanceof OsmTransferException) { 298 msg = explainOsmTransferException((OsmTransferException) e); 299 } else { 300 msg = explainGeneric(e); 301 } 302 e.printStackTrace(); 303 return msg; 295 304 } 296 305 }
Note:
See TracChangeset
for help on using the changeset viewer.
