diff --git a/src/main/java/redis/clients/util/RedisInputStream.java b/src/main/java/redis/clients/util/RedisInputStream.java index f30ddf5fa9..221e7564ce 100644 --- a/src/main/java/redis/clients/util/RedisInputStream.java +++ b/src/main/java/redis/clients/util/RedisInputStream.java @@ -21,7 +21,6 @@ import java.io.InputStream; import redis.clients.jedis.exceptions.JedisConnectionException; -import redis.clients.jedis.exceptions.JedisException; public class RedisInputStream extends FilterInputStream { @@ -84,7 +83,7 @@ public String readLine() { } } } catch (IOException e) { - throw new JedisException(e); + throw new JedisConnectionException(e); } String reply = sb.toString(); if (reply.length() == 0) {