From 6e4e1c39f4d0b732d48fea86daaddaf6468de511 Mon Sep 17 00:00:00 2001 From: Dmytro Date: Wed, 15 Jun 2011 09:46:48 +0100 Subject: [PATCH] Throwing Jedis connection exception on IO error rather than JedisException --- src/main/java/redis/clients/util/RedisInputStream.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {