Ignore:
Timestamp:
2016-07-24T13:54:44+02:00 (10 years ago)
Author:
Don-vip
Message:

simplify handling of ignored/traced exceptions

File:
1 edited

Legend:

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

    r10608 r10626  
    793793        } catch (NumberFormatException e) {
    794794            // fall out
    795             if (Main.isTraceEnabled()) {
    796                 Main.trace(e.getMessage());
    797             }
     795            Main.trace(e);
    798796        }
    799797        return def;
     
    811809        } catch (NumberFormatException e) {
    812810            // fall out
    813             if (Main.isTraceEnabled()) {
    814                 Main.trace(e.getMessage());
    815             }
     811            Main.trace(e);
    816812        }
    817813        return def;
     
    827823        } catch (NumberFormatException e) {
    828824            // fall out
    829             if (Main.isTraceEnabled()) {
    830                 Main.trace(e.getMessage());
    831             }
     825            Main.trace(e);
    832826        }
    833827        return def;
     
    843837        } catch (NumberFormatException e) {
    844838            // fall out
    845             if (Main.isTraceEnabled()) {
    846                 Main.trace(e.getMessage());
    847             }
     839            Main.trace(e);
    848840        }
    849841        return def;
Note: See TracChangeset for help on using the changeset viewer.