Changeset 2289 in josm for trunk/src/org/openstreetmap/josm/gui/ExceptionDialogUtil.java
- Timestamp:
- 2009-10-15T04:45:06+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ExceptionDialogUtil.java
r2240 r2289 144 144 145 145 /** 146 * Explains a {@see OsmApiException} which was thrown because of a conflict 147 * 148 * @param e the exception 149 */ 150 public static void explainConflict(OsmApiException e) { 151 JOptionPane.showMessageDialog(Main.parent, ExceptionUtil.explainConflict(e), tr("Conflict"), 152 JOptionPane.ERROR_MESSAGE); 153 } 154 155 /** 146 156 * Explains a {@see UnknownHostException} which has caused an {@see OsmTransferException}. 147 157 * This is most likely happening when there is an error in the API URL or when … … 231 241 return; 232 242 } 243 if (oae.getResponseCode() == HttpURLConnection.HTTP_CONFLICT) { 244 explainConflict(oae); 245 return; 246 } 233 247 234 248 }
Note:
See TracChangeset
for help on using the changeset viewer.