Skip to content

Commit

Permalink
Throwing Jedis connection exception on IO error rather than JedisExce…
Browse files Browse the repository at this point in the history
…ption
  • Loading branch information
grdmitro committed Jun 15, 2011
1 parent e5a3833 commit 6e4e1c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/redis/clients/util/RedisInputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 6e4e1c3

Please sign in to comment.