forked from redis/jedis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Intoduce dedicated excpetion for Redis error "busy"
* Introduce JedisRedisBusyException * Add test for JedisRedisBusyException in case of redis error "busy" If redis returns a message starting with "-BUSY" a JedisRedisBusyException containing that message is thrown. * Harmonize name of constant with those of other reponses * Rename exception class to comply with conventions Rename JedisRedisBusyException to JedisBusyException.
- Loading branch information
1 parent
21fded3
commit 8f62c4c
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/redis/clients/jedis/exceptions/JedisBusyException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package redis.clients.jedis.exceptions; | ||
|
||
public class JedisBusyException extends JedisDataException { | ||
|
||
private static final long serialVersionUID = 3992655220229243478L; | ||
|
||
public JedisBusyException(final String message) { | ||
super(message); | ||
} | ||
|
||
public JedisBusyException(final Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
public JedisBusyException(final String message, final Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters