Changeset 2825 in josm
- Timestamp:
- 2010-01-12T08:58:43+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java
r2801 r2825 316 316 if (lastException instanceof ChangesetClosedException) { 317 317 ChangesetClosedException e = (ChangesetClosedException)lastException; 318 if (e.getSource().equals(ChangesetClosedException.Source.UPDATE_CHANGESET)) { 319 handleFailedUpload(lastException); 320 return; 321 } 318 322 if (strategy.getPolicy() == null) 319 323 /* do nothing if unknown policy */ -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r2748 r2825 22 22 import java.util.Collections; 23 23 import java.util.HashMap; 24 import java.util.logging.Logger; 24 25 25 26 import javax.xml.parsers.ParserConfigurationException; … … 47 48 */ 48 49 public class OsmApi extends OsmConnection { 50 static private final Logger logger = Logger.getLogger(OsmApi.class.getName()); 49 51 /** max number of retries to send a request in case of HTTP 500 errors or timeouts */ 50 52 static public final int DEFAULT_MAX_NUM_RETRIES = 5; … … 579 581 case HttpURLConnection.HTTP_GONE: 580 582 throw new OsmApiPrimitiveGoneException(errorHeader, errorBody); 581 // case HttpURLConnection.HTTP_UNAUTHORIZED:582 // throw new OsmApiException(retCode, errorHeader, errorBody);583 // case HttpURLConnection.HTTP_PROXY_AUTH:584 // throw new OsmApiException(retCode, errorHeader, errorBody);585 // case HttpURLConnection.HTTP_FORBIDDEN:586 // throw new OsmApiException(retCode, errorHeader, errorBody);587 583 case HttpURLConnection.HTTP_CONFLICT: 588 584 if (ChangesetClosedException.errorHeaderMatchesPattern(errorHeader)) -
trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java
r2711 r2825 121 121 } catch(OsmTransferException e) { 122 122 throw e; 123 } catch(Exception e) {124 throw new OsmTransferException(e);125 123 } finally { 126 124 progressMonitor.finishTask(); … … 161 159 } catch(OsmTransferException e) { 162 160 throw e; 163 } catch(Exception e) {164 throw new OsmTransferException(e);165 161 } finally { 166 162 progressMonitor.finishTask(); … … 207 203 } catch(OsmTransferException e) { 208 204 throw e; 209 } catch(Exception e) {210 throw new OsmTransferException(e);211 205 } finally { 212 206 monitor.finishTask();
Note:
See TracChangeset
for help on using the changeset viewer.