Changeset 10212 in josm for trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
- Timestamp:
- 2016-05-15T00:51:10+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r10043 r10212 252 252 * @param info imagery info 253 253 * @throws IOException if any I/O error occurs 254 * @throws IllegalArgumentException if any other error happens for the given imagery info 254 255 */ 255 256 public WMTSTileSource(ImageryInfo info) throws IOException { … … 290 291 } 291 292 292 private Collection<Layer> getCapabilities() { 293 /** 294 * @return capabilities 295 * @throws IOException in case of any I/O error 296 * @throws IllegalArgumentException in case of any other error 297 */ 298 private Collection<Layer> getCapabilities() throws IOException { 293 299 XMLInputFactory factory = XMLInputFactory.newFactory(); 294 300 // do not try to load external entities, nor validate the XML … … 320 326 } 321 327 return ret; 322 } catch ( Exception e) {328 } catch (XMLStreamException e) { 323 329 throw new IllegalArgumentException(e); 324 330 }
Note:
See TracChangeset
for help on using the changeset viewer.