Revision: 4908
          http://sourceforge.net/p/vexi/code/4908
Author:   mkpg2
Date:     2016-12-05 12:19:23 +0000 (Mon, 05 Dec 2016)
Log Message:
-----------
Handle connection exception.

Modified Paths:
--------------
    branches/vexi3/org.vexi-library.js/src/main/java/org/ibex/js/JSU.java

Modified: branches/vexi3/org.vexi-library.js/src/main/java/org/ibex/js/JSU.java
===================================================================
--- branches/vexi3/org.vexi-library.js/src/main/java/org/ibex/js/JSU.java       
2016-11-24 08:47:52 UTC (rev 4907)
+++ branches/vexi3/org.vexi-library.js/src/main/java/org/ibex/js/JSU.java       
2016-12-05 12:19:23 UTC (rev 4908)
@@ -7,6 +7,7 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
+import java.net.ConnectException;
 import java.nio.charset.Charset;
 
 import org.ibex.js.JS.ConstructorList;
@@ -84,6 +85,9 @@
     // on everywhere that handles IOExceptions from fountains to
     // call this...
     static public JSExn handleFountainExn(IOException e) {
+       if(e instanceof ConnectException){
+               return new JSExn(e.getMessage(),JSU.S("connection"));           
        
+       }
        if(e instanceof HTTPErrorResponse) {
                HTTPErrorResponse he = (HTTPErrorResponse)e;
                JSExn je = new JSExn(e.getMessage(),SC_http);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to