add socket timeout exception as cause
@@ -1980,7 +1980,7 @@ final class TDSChannel {
logger.fine(toString() + " read failed:" + e.getMessage());
if (e instanceof SocketTimeoutException) {
- con.terminate(SQLServerException.ERROR_SOCKET_TIMEOUT, e.getMessage());
+ con.terminate(SQLServerException.ERROR_SOCKET_TIMEOUT, e.getMessage(), e);
}
else {
con.terminate(SQLServerException.DRIVER_ERROR_IO_FAILED, e.getMessage());
