Throwing Jedis connection exception on IO error rather than JedisException

This commit is contained in:
Dmytro
2011-06-15 09:46:48 +01:00
parent e5a3833d4a
commit 6e4e1c39f4

View File

@@ -21,7 +21,6 @@ import java.io.IOException;
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 class RedisInputStream extends FilterInputStream {
}
}
} catch (IOException e) {
throw new JedisException(e);
throw new JedisConnectionException(e);
}
String reply = sb.toString();
if (reply.length() == 0) {