Changeset 2189 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2009-09-26T10:37:00+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ExceptionDialogUtil.java
r2097 r2189 133 133 134 134 /** 135 * Explains a {@see OsmApiException} which was thrown because a resource wasn't found 136 * on the server 137 * 138 * @param e the exception 139 */ 140 public static void explainNotFound(OsmApiException e) { 141 JOptionPane.showMessageDialog(Main.parent, ExceptionUtil.explainNotFound(e), tr("Not Found"), 142 JOptionPane.ERROR_MESSAGE); 143 } 144 145 /** 135 146 * Explains a {@see UnknownHostException} which has caused an {@see OsmTransferException}. 136 147 * This is most likely happening when there is an error in the API URL or when … … 216 227 return; 217 228 } 229 if (oae.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) { 230 explainNotFound(oae); 231 return; 232 } 233 218 234 } 219 235 explainGeneric(e);
Note:
See TracChangeset
for help on using the changeset viewer.
