java gateway : more exception testing in test code collab/berick/java-http-gateway-in-progress
authorBill Erickson <berick@esilibrary.com>
Mon, 19 Mar 2012 13:11:24 +0000 (09:11 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 19 Mar 2012 13:11:24 +0000 (09:11 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
src/java/org/opensrf/test/TestGateway.java

index 300308d..1ac6d90 100644 (file)
@@ -56,6 +56,8 @@ public class TestGateway {
 
                         // ruh-roh
                         public void onError(HttpRequest req, Exception ex) {
+                            if (ex instanceof java.io.IOException) 
+                                System.err.println("Trouble communicating with gateway server!");
                             ex.printStackTrace();
                         }
                     }