Ignore:
Timestamp:
2014-12-20T14:55:22+01:00 (9 years ago)
Author:
Don-vip
Message:

catch Exception instead of Throwable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/AutosaveTask.java

    r7834 r7856  
    159159                    try (PrintStream ps = new PrintStream(pidFile, "UTF-8")) {
    160160                        ps.println(ManagementFactory.getRuntimeMXBean().getName());
    161                     } catch (Throwable t) {
     161                    } catch (Exception t) {
    162162                        Main.error(t);
    163163                    }
     
    209209                    displayNotification();
    210210                }
    211             } catch (Throwable t) {
     211            } catch (Exception t) {
    212212                // Don't let exception stop time thread
    213213                Main.error("Autosave failed:");
     
    308308                            skipFile = jvmPerfDataFileExists(pid);
    309309                        }
    310                     } catch (Throwable t) {
     310                    } catch (Exception t) {
    311311                        Main.error(t);
    312312                    }
Note: See TracChangeset for help on using the changeset viewer.