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/Cascade.java

    r7509 r7864  
    4242    public <T> T get(String key, T def, Class<T> klass, boolean suppressWarnings) {
    4343        if (def != null && !klass.isInstance(def))
    44             throw new IllegalArgumentException();
     44            throw new IllegalArgumentException(def+" is not an instance of "+klass);
    4545        Object o = prop.get(key);
    4646        if (o == null)
Note: See TracChangeset for help on using the changeset viewer.