Ignore:
Timestamp:
2016-06-18T19:54:45+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S1166 - Exception handlers should preserve the original exceptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageEntry.java

    r10309 r10420  
    447447            setExifTime(ExifReader.readTime(file));
    448448        } catch (RuntimeException ex) {
     449            Main.warn(ex);
    449450            setExifTime(null);
    450451        }
     
    467468            }
    468469        } catch (MetadataException ex) {
    469             if (Main.isDebugEnabled()) {
    470                 Main.debug(ex.getMessage());
    471             }
     470            Main.debug(ex);
    472471        }
    473472
     
    491490            setSpeed(speed);
    492491        } catch (MetadataException ex) {
    493             if (Main.isDebugEnabled()) {
    494                 Main.debug(ex.getMessage());
    495             }
     492            Main.debug(ex);
    496493        }
    497494
     
    504501            setElevation(ele);
    505502        } catch (MetadataException ex) {
    506             if (Main.isDebugEnabled()) {
    507                 Main.debug(ex.getMessage());
    508             }
     503            Main.debug(ex);
    509504        }
    510505
     
    526521            }
    527522        } catch (IndexOutOfBoundsException ex) { // (other exceptions, e.g. #5271)
    528             if (Main.isDebugEnabled()) {
    529                 Main.debug(ex.getMessage());
    530             }
     523            Main.debug(ex);
    531524        }
    532525
Note: See TracChangeset for help on using the changeset viewer.