Index: trunk/src/org/openstreetmap/josm/io/OsmJsonReader.java
===================================================================
--- trunk/src/org/openstreetmap/josm/io/OsmJsonReader.java	(revision 18815)
+++ trunk/src/org/openstreetmap/josm/io/OsmJsonReader.java	(revision 18816)
@@ -4,6 +4,6 @@
 import static org.openstreetmap.josm.tools.I18n.tr;
 
+import java.io.IOException;
 import java.io.InputStream;
-import java.net.SocketException;
 import java.util.Collection;
 import java.util.Map.Entry;
@@ -33,5 +33,5 @@
 /**
  * Parser for the Osm API (JSON output). Read from an input stream and construct a dataset out of it.
- *
+ * <p>
  * For each json element, there is a dedicated method.
  * @since 14086
@@ -190,6 +190,6 @@
             throw new IllegalDataException(exception);
         } catch (JsonException exception) {
-            if (exception.getCause() instanceof SocketException) {
-                SocketException soe = (SocketException) exception.getCause();
+            if (exception.getCause() instanceof IOException) {
+                IOException soe = (IOException) exception.getCause();
                 soe.addSuppressed(exception); // Add the caught exception as a suppressed exception
                 throw new IllegalDataException(soe); // NOPMD -- PreserveStackTrace should be fixed with PMD 7
