Changeset 11374 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
- Timestamp:
- 2016-12-09T23:31:13+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
r10837 r11374 60 60 import org.openstreetmap.josm.io.CachedFile; 61 61 import org.openstreetmap.josm.tools.CheckParameterUtil; 62 import org.openstreetmap.josm.tools.JosmRuntimeException; 62 63 import org.openstreetmap.josm.tools.LanguageInfo; 63 64 import org.openstreetmap.josm.tools.Utils; … … 108 109 SUPPORTED_KEYS.add((String) f.get(null)); 109 110 if (!f.getName().toLowerCase(Locale.ENGLISH).replace('_', '-').equals(f.get(null))) { 110 throw new RuntimeException(f.getName());111 throw new JosmRuntimeException(f.getName()); 111 112 } 112 113 } catch (IllegalArgumentException | IllegalAccessException ex) { 113 throw new RuntimeException(ex);114 throw new JosmRuntimeException(ex); 114 115 } 115 116 } … … 468 469 break; 469 470 default: 470 final RuntimeException e = new RuntimeException(MessageFormat.format("Unknown MapCSS base selector {0}", base));471 final RuntimeException e = new JosmRuntimeException(MessageFormat.format("Unknown MapCSS base selector {0}", base)); 471 472 Main.warn(tr("Failed to parse Mappaint styles from ''{0}''. Error was: {1}", url, e.getMessage())); 472 473 Main.error(e);
Note:
See TracChangeset
for help on using the changeset viewer.