Use connection method for obraining errors
[yaz4j-moved-to-github.git] / src / main / java / org / yaz4j / AsyncConnection.java
index 6bb2470..d8e9d0c 100644 (file)
@@ -91,7 +91,7 @@ public class AsyncConnection extends Connection {
   void handleError() {
     //handle error
     if (!errorHandled) {
-      ZoomException err = ExceptionUtil.getError(zoomConnection, host, port);
+      ZoomException err = getZoomException();
       if (err != null) {
         if (eh != null) {
           eh.handle(err);