Changeset 30319 in osm for applications/editors/josm/plugins/roadsigns/src/org/openstreetmap
- Timestamp:
- 2014-03-10T02:36:47+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/roadsigns/src/org/openstreetmap/josm/plugins/roadsigns/RoadSignsReader.java
r29854 r30319 21 21 import org.xml.sax.SAXParseException; 22 22 import org.xml.sax.helpers.DefaultHandler; 23 24 23 import org.openstreetmap.josm.Main; 25 import org.openstreetmap.josm.io.OsmDataParsingException;26 24 import org.openstreetmap.josm.plugins.roadsigns.Sign.SignParameter; 27 25 import org.openstreetmap.josm.plugins.roadsigns.Sign.Tag; … … 29 27 import org.openstreetmap.josm.plugins.roadsigns.javacc.TokenMgrError; 30 28 import org.openstreetmap.josm.tools.LanguageInfo; 29 import org.openstreetmap.josm.tools.XmlParsingException; 31 30 32 31 /** … … 202 201 } 203 202 204 private String getMandatoryAttribute(Attributes atts, String ident) throws OsmDataParsingException {203 private String getMandatoryAttribute(Attributes atts, String ident) throws XmlParsingException { 205 204 String result = atts.getValue(ident); 206 205 if (result == null) { … … 223 222 throw new ExtendedParsingException(e).rememberLocation(locator); 224 223 } 225 protected void throwException(String msg) throws OsmDataParsingException {226 throw new OsmDataParsingException(msg).rememberLocation(locator);224 protected void throwException(String msg) throws XmlParsingException { 225 throw new XmlParsingException(msg).rememberLocation(locator); 227 226 } 228 227 … … 230 229 try { 231 230 throwException(s); 232 } catch ( OsmDataParsingException ex) {231 } catch (XmlParsingException ex) { 233 232 System.err.println("Warning: "+ex.getMessage()); 234 233 } 235 234 } 236 public void wireSupplements() throws OsmDataParsingException {235 public void wireSupplements() throws XmlParsingException { 237 236 Map<String, Sign> map = new HashMap<String, Sign>(); 238 237 for (Sign sign : allSigns) {
Note:
See TracChangeset
for help on using the changeset viewer.