Changeset 14088 in josm
- Timestamp:
- 2018-08-05T16:47:40+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmReader.java
r14086 r14088 137 137 } 138 138 139 private void handleIllegalDataException(IllegalDataException e) throws XMLStreamException { 140 if (e.getCause() instanceof XMLStreamException) { 141 throw (XMLStreamException) e.getCause(); 142 } else { 143 throwException(e); 144 } 145 } 146 139 147 private void parseBounds(String generator) throws XMLStreamException { 140 148 String minlon = parser.getAttributeValue(null, "minlon"); … … 146 154 parseBounds(generator, minlon, minlat, maxlon, maxlat, origin); 147 155 } catch (IllegalDataException e) { 148 throwException(e);156 handleIllegalDataException(e); 149 157 } 150 158 jumpToEnd(); … … 157 165 return parseNode(lat, lon, this::readCommon, this::parseNodeTags); 158 166 } catch (IllegalDataException e) { 159 throwException(e);167 handleIllegalDataException(e); 160 168 } 161 169 return null; … … 185 193 return parseWay(this::readCommon, this::parseWayNodesAndTags); 186 194 } catch (IllegalDataException e) { 187 throwException(e);195 handleIllegalDataException(e); 188 196 } 189 197 return null; … … 234 242 return parseRelation(this::readCommon, this::parseRelationMembersAndTags); 235 243 } catch (IllegalDataException e) { 236 throw new XMLStreamException(e); 237 } 244 handleIllegalDataException(e); 245 } 246 return null; 238 247 } 239 248 … … 271 280 jumpToEnd(); 272 281 } catch (IllegalDataException e) { 273 throwException(e);282 handleIllegalDataException(e); 274 283 } 275 284 return result;
Note:
See TracChangeset
for help on using the changeset viewer.