A patch from Sergey Dostovalov, with minor modification.
yaz4jlib.ZOOM_connection_close(zoomConnection);
closed = true;
}
+
+ /**
+ * Return exception type from current connection
+ *
+ * @return null if no error
+ */
+ ZoomException getZoomException() {
+ ZoomException err = ExceptionUtil.getError(zoomConnection, host, port);
+ return err;
+ }
/**
* Write option with a given name.
List<Record> out = new ArrayList<Record>(count);
SWIGTYPE_p_p_ZOOM_record_p recs = yaz4jlib.new_zoomRecordArray(count);
yaz4jlib.ZOOM_resultset_records(resultSet, recs, start, count);
+ ZoomException err = this.conn.getZoomException();
+ if (err != null) {
+ throw err;
+ }
for (int i = 0; i < count; i++) {
SWIGTYPE_p_ZOOM_record_p record =
yaz4jlib.zoomRecordArray_getitem(recs, i);