Ignore:
Timestamp:
2014-05-02T02:37:08+02:00 (10 years ago)
Author:
Don-vip
Message:

sonar - Throwable and Error classes should not be caught

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

Legend:

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

    r7012 r7048  
    6464                try {
    6565                    instance.initFromOAuth(Main.parent);
    66                 } catch (Throwable t) {
    67                     Main.error(t);
     66                } catch (Exception e) {
     67                    Main.error(e);
    6868                    // Fall back to preferences if OAuth identification fails for any reason
    6969                    instance.initFromPreferences();
     
    278278                try {
    279279                    instance.initFromOAuth(Main.parent);
    280                 } catch (Throwable t) {
    281                     Main.error(t);
     280                } catch (Exception e) {
     281                    Main.error(e);
    282282                }
    283283            }
  • trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java

    r7026 r7048  
    562562                                } catch (SecurityException ex) {
    563563                                    Main.error(ex);
    564                                 } catch (Throwable ex) {
     564                                } catch (Exception ex) {
    565565                                    BugReportExceptionHandler.handleException(ex);
    566566                                } finally {
     
    576576                } catch (SecurityException ex) {
    577577                    Main.error(ex);
    578                 } catch (Throwable ex) {
     578                } catch (Exception ex) {
    579579                    // allow to change most settings even if e.g. a plugin fails
    580580                    BugReportExceptionHandler.handleException(ex);
Note: See TracChangeset for help on using the changeset viewer.