@@ -147,7 +147,7 @@ public GPXConsumer(
147147 nextFeature = null ;
148148 }
149149 }
150- catch (IOException | XMLStreamException e ) {
150+ catch (Exception e ) {
151151 LOGGER .error (
152152 "Error processing GPX input stream" ,
153153 e );
@@ -166,7 +166,7 @@ public GeoWaveData<SimpleFeature> next() {
166166 try {
167167 nextFeature = getNext ();
168168 }
169- catch (final XMLStreamException e ) {
169+ catch (final Exception e ) {
170170 LOGGER .error (
171171 "Error processing GPX input stream" ,
172172 e );
@@ -195,7 +195,7 @@ public void close()
195195
196196 private void init ()
197197 throws IOException ,
198- XMLStreamException {
198+ Exception {
199199
200200 while (eventReader .hasNext ()) {
201201 final XMLEvent event = eventReader .nextEvent ();
@@ -214,7 +214,7 @@ private void init()
214214 }
215215
216216 private GeoWaveData <SimpleFeature > getNext ()
217- throws XMLStreamException {
217+ throws Exception {
218218
219219 GPXDataElement currentElement = currentElementStack .peek ();
220220 GeoWaveData <SimpleFeature > newFeature = null ;
@@ -254,7 +254,7 @@ else if (currentElementStack.size() == 1) {
254254 private String getChildCharacters (
255255 final XMLEventReader eventReader ,
256256 final String elType )
257- throws XMLStreamException {
257+ throws Exception {
258258 final StringBuilder buf = new StringBuilder ();
259259 XMLEvent event = eventReader .nextEvent ();
260260 while (!(event .isEndElement () && event .asEndElement ().getName ().getLocalPart ().equals (
@@ -271,8 +271,7 @@ private String getChildCharacters(
271271 private void processElementAttributes (
272272 final StartElement node ,
273273 final GPXDataElement element )
274- throws NumberFormatException ,
275- XMLStreamException {
274+ throws Exception {
276275 @ SuppressWarnings ("unchecked" )
277276 final Iterator <Attribute > attributes = node .getAttributes ();
278277 while (attributes .hasNext ()) {
@@ -291,8 +290,7 @@ else if (a.getName().getLocalPart().equals(
291290 private boolean processElementValues (
292291 final StartElement node ,
293292 final GPXDataElement element )
294- throws NumberFormatException ,
295- XMLStreamException {
293+ throws Exception {
296294 switch (node .getName ().getLocalPart ()) {
297295 case "ele" : {
298296 element .elevation = Double .parseDouble (getChildCharacters (
0 commit comments