Changeset 14936 in josm


Ignore:
Timestamp:
2019-03-26T22:46:08+01:00 (9 months ago)
Author:
GerdP
Message:

fix #17525: catch all RunTimeExceptions in PleaseWaitRunnable.doRealRun()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java

    r12846 r14936  
    1515import org.openstreetmap.josm.io.OsmTransferException;
    1616import org.openstreetmap.josm.tools.CheckParameterUtil;
    17 import org.openstreetmap.josm.tools.JosmRuntimeException;
    1817import org.openstreetmap.josm.tools.bugreport.BugReportExceptionHandler;
    1918import org.xml.sax.SAXException;
     
    114113                }
    115114            }
    116         } catch (final JosmRuntimeException | IllegalArgumentException | IllegalStateException | UnsupportedOperationException |
    117                 OsmTransferException | IOException | SAXException | InvocationTargetException | InterruptedException e) {
     115        } catch (final RuntimeException | OsmTransferException | IOException | SAXException | InvocationTargetException
     116                | InterruptedException e) {
    118117            if (!ignoreException) {
    119118                // Exception has to thrown in EDT to be shown to user
     
    130129
    131130    /**
    132      * Can be overriden if something needs to run after progress monitor is closed.
     131     * Can be overridden if something needs to run after progress monitor is closed.
    133132     */
    134133    protected void afterFinish() {
Note: See TracChangeset for help on using the changeset viewer.