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

sonar - Throwable and Error classes should not be caught

File:
1 edited

Legend:

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

    r7033 r7048  
    179179            try {
    180180                proj = pc.getProjection();
    181             } catch (Throwable t) {
    182                 String cause = t.getMessage();
     181            } catch (Exception e) {
     182                String cause = e.getMessage();
    183183                Main.warn("Unable to get projection "+code+" with "+pc + (cause != null ? ". "+cause : ""));
    184184            }
Note: See TracChangeset for help on using the changeset viewer.