src/share/classes/sun/awt/datatransfer/ClipboardTransferable.java

Print this page

        

@@ -151,11 +151,11 @@
             throw new UnsupportedFlavorException(flavor);
         }
         Object ret = flavorsToData.get(flavor);
         if (ret instanceof IOException) {
             // rethrow IOExceptions generated while fetching data
-            throw (IOException)ret;
+            throw new IOException("Exception fetching data: ", (IOException)ret);
         } else if (ret instanceof DataFactory) {
             // Now we can render the data
             DataFactory factory = (DataFactory)ret;
             ret = factory.getTransferData(flavor);
         }