Changeset 13747 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2018-05-13T11:47:05+02:00 (16 months ago)
Author:
wiktorn
Message:

Report parse exceptions as WMTSGetCapabilitiesException

See: #16249

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java

    r13746 r13747  
    429429                cf.clear();
    430430                Logging.warn(new String(data, StandardCharsets.UTF_8));
    431                 throw new IllegalArgumentException(e);
     431                throw new WMTSGetCapabilitiesException(tr("Error during parsing of WMTS Capabilities document: {1}", e.getMessage()));
    432432            }
    433433        }
Note: See TracChangeset for help on using the changeset viewer.