Ignore:
Timestamp:
2016-06-24T01:27:35+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/data/validation/tests/TagChecker.java

    r10378 r10469  
    245245                }
    246246            } catch (IOException e) {
     247                Main.error(e);
    247248                errorSources.append(source).append('\n');
    248249            }
     
    294295                harmonizedKeys.put(harmonizeKey(ky.key), ky.key);
    295296            } catch (NullPointerException e) {
    296                 Main.error(p+": Unable to initialize "+ky);
     297                Main.error(e, p+": Unable to initialize "+ky+'.');
    297298            }
    298299        }
     
    783784                }
    784785            } catch (IllegalStateException e) {
     786                Main.error(e);
    785787                description = null;
    786788            }
     
    825827                    data.add(new CheckerElement(exp));
    826828                } catch (IllegalStateException e) {
     829                    Main.trace(e);
    827830                    return tr("Illegal expression ''{0}''", exp);
    828831                } catch (PatternSyntaxException e) {
     832                    Main.trace(e);
    829833                    return tr("Illegal regular expression ''{0}''", exp);
    830834                }
Note: See TracChangeset for help on using the changeset viewer.