Changeset 1670 in josm for trunk/src/org/openstreetmap/josm/io/BoundingBoxDownloader.java
- Timestamp:
- 15.06.2009 20:22:46 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/BoundingBoxDownloader.java
r1465 r1670 50 50 Main.pleaseWaitDlg.currentAction.setText(tr("Downloading points {0} to {1}...", i * 5000, ((i + 1) * 5000))); 51 51 InputStream in = getInputStream(url+i, Main.pleaseWaitDlg); 52 if (in == null) 52 if (in == null) { 53 53 break; 54 } 54 55 GpxData currentGpx = new GpxReader(in, null).data; 55 56 if (result == null) { … … 89 90 * @return A data set containing all data retrieved from that url 90 91 */ 91 public DataSet parseOsm() throws SAXException, IOException { 92 @Override 93 public DataSet parseOsm() throws OsmTransferException { 92 94 try { 93 95 Main.pleaseWaitDlg.progress.setValue(0); … … 106 108 if (cancel) 107 109 return null; 108 throw e;110 throw new OsmTransferException(e); 109 111 } catch (SAXException e) { 112 throw new OsmTransferException(e); 113 } catch(OsmTransferException e) { 110 114 throw e; 111 115 } catch (Exception e) { 112 116 if (cancel) 113 117 return null; 114 if (e instanceof RuntimeException) 115 throw (RuntimeException)e; 116 throw new RuntimeException(e); 118 throw new OsmTransferException(e); 117 119 } 118 120 }
Note: See TracChangeset
for help on using the changeset viewer.
