changeset 13219:fdc3925a8e74

IGV display an error message for any exception during port binding
author Gilles Duboscq <duboscq@ssw.jku.at>
date Mon, 02 Dec 2013 18:02:04 +0100
parents 36864a23bc11
children 2b43fcc68add
files src/share/tools/IdealGraphVisualizer/NetworkConnection/src/com/sun/hotspot/igv/connection/Server.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/tools/IdealGraphVisualizer/NetworkConnection/src/com/sun/hotspot/igv/connection/Server.java	Mon Dec 02 18:01:14 2013 +0100
+++ b/src/share/tools/IdealGraphVisualizer/NetworkConnection/src/com/sun/hotspot/igv/connection/Server.java	Mon Dec 02 18:02:04 2013 +0100
@@ -73,7 +73,7 @@
         try {
             serverSocket = ServerSocketChannel.open();
             serverSocket.bind(new InetSocketAddress(curPort));
-        } catch (IOException ex) {
+        } catch (Throwable ex) {
             NotifyDescriptor message = new NotifyDescriptor.Message("Could not create server. Listening for incoming binary data is disabled.", NotifyDescriptor.ERROR_MESSAGE);
             DialogDisplayer.getDefault().notifyLater(message);
             return;