Ignore:
Timestamp:
2014-12-20T22:43:20+01:00 (9 years ago)
Author:
Don-vip
Message:

global cleanup of IllegalArgumentExceptions thrown by JOSM

File:
1 edited

Legend:

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

    r7083 r7864  
    105105    public StyleList get(double scale) {
    106106        if (scale <= 0)
    107             throw new IllegalArgumentException();
     107            throw new IllegalArgumentException("scale must be <= 0 but is "+scale);
    108108        for (int i=0; i<data.size(); ++i) {
    109109            if (bd.get(i) < scale && scale <= bd.get(i+1)) {
     
    120120    public Pair<StyleList, Range> getWithRange(double scale) {
    121121        if (scale <= 0)
    122             throw new IllegalArgumentException();
     122            throw new IllegalArgumentException("scale must be <= 0 but is "+scale);
    123123        for (int i=0; i<data.size(); ++i) {
    124124            if (bd.get(i) < scale && scale <= bd.get(i+1)) {
Note: See TracChangeset for help on using the changeset viewer.