Throw translated Exception on SRP conn failure

DATAREDIS-234
This commit is contained in:
Jennifer Hickey
2013-08-16 15:19:02 -07:00
parent 6290cbad06
commit e94fa9a35a
2 changed files with 16 additions and 0 deletions

View File

@@ -210,6 +210,8 @@ public class SrpConnection implements RedisConnection {
this.queue = queue;
} catch (IOException e) {
throw new RedisConnectionFailureException("Could not connect", e);
} catch(RedisException e) {
throw new RedisConnectionFailureException("Could not connect", e);
}
}