File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/main/java/redis/clients/jedis/util Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 5
5
import redis .clients .jedis .HostAndPort ;
6
6
import redis .clients .jedis .Protocol ;
7
7
import redis .clients .jedis .RedisProtocol ;
8
- import redis .clients .jedis .exceptions .JedisValidationException ;
9
8
10
9
public final class JedisURIHelper {
11
10
@@ -110,15 +109,15 @@ public static ClientSideCache getClientSideCache(URI uri) {
110
109
try {
111
110
maxSize = Integer .parseInt (val );
112
111
} catch (NumberFormatException nfe ) {
113
- throw new JedisValidationException ("Value of cache_max_size must be an integer." , nfe );
112
+ throw new IllegalArgumentException ("Value of cache_max_size must be an integer." , nfe );
114
113
}
115
114
break ;
116
115
117
116
case "cache_ttl" :
118
117
try {
119
118
ttl = Integer .parseInt (val );
120
119
} catch (NumberFormatException nfe ) {
121
- throw new JedisValidationException ("Value of cache_ttl must be an integer denoting seconds." , nfe );
120
+ throw new IllegalArgumentException ("Value of cache_ttl must be an integer denoting seconds." , nfe );
122
121
}
123
122
break ;
124
123
}
You can’t perform that action at this time.
0 commit comments