From: Bill Erickson Date: Mon, 19 Mar 2012 13:11:24 +0000 (-0400) Subject: java gateway : more exception testing in test code X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fcollab%2Fberick%2Fjava-http-gateway-in-progress;p=working%2FOpenSRF.git java gateway : more exception testing in test code Signed-off-by: Bill Erickson --- diff --git a/src/java/org/opensrf/test/TestGateway.java b/src/java/org/opensrf/test/TestGateway.java index 300308d..1ac6d90 100644 --- a/src/java/org/opensrf/test/TestGateway.java +++ b/src/java/org/opensrf/test/TestGateway.java @@ -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(); } }