Merge pull request #163 from grdmitro/jedis

---

Throwing Jedis connection exception on IO error rather than JedisException
This commit is contained in:
Eric Hauser
2011-09-12 23:07:45 -04:00

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) {