Changeset 1835 in josm


Ignore:
Timestamp:
2009-07-25T13:03:23+02:00 (15 years ago)
Author:
Gubaer
Message:

applied #2850: patch by dmuecke - unhandled Exception when trying to download data while offline

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTask.java

    r1811 r1835  
    1818import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    1919import org.openstreetmap.josm.io.BoundingBoxDownloader;
     20import org.openstreetmap.josm.io.OsmTransferException;
    2021import org.xml.sax.SAXException;
    2122
     
    3435        }
    3536
    36         @Override public void realRun() throws IOException, SAXException {
     37        @Override public void realRun() throws IOException, SAXException, OsmTransferException {
    3738            rawData = reader.parseRawGps(progressMonitor.createSubTaskMonitor(ProgressMonitor.ALL_TICKS, false));
    3839        }
  • trunk/src/org/openstreetmap/josm/io/BoundingBoxDownloader.java

    r1811 r1835  
    4040     *      ways.
    4141     */
    42     public GpxData parseRawGps(ProgressMonitor progressMonitor) throws IOException, SAXException {
     42    public GpxData parseRawGps(ProgressMonitor progressMonitor) throws IOException, SAXException,OsmTransferException {
    4343        progressMonitor.beginTask("", 1);
    4444        try {
     
    7878            throw e;
    7979        } catch (SAXException e) {
     80            throw e;
     81        } catch (OsmTransferException e) {
    8082            throw e;
    8183        } catch (Exception e) {
Note: See TracChangeset for help on using the changeset viewer.