Skip to content

Commit dc13267

Browse files
committed
changed all the ex to exception
1 parent e31c072 commit dc13267

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

spring-context/src/main/java/org/springframework/cache/interceptor/AbstractCacheInvoker.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public CacheErrorHandler getErrorHandler() {
7777
try {
7878
return cache.get(key);
7979
}
80-
catch (RuntimeException ex) {
81-
getErrorHandler().handleCacheGetError(ex, cache, key);
80+
catch (RuntimeException exception) {
81+
getErrorHandler().handleCacheGetError(exception, cache, key);
8282
return null; // If the exception is handled, return a cache miss
8383
}
8484
}
@@ -95,16 +95,16 @@ public CacheErrorHandler getErrorHandler() {
9595
try {
9696
return cache.get(key, valueLoader);
9797
}
98-
catch (Cache.ValueRetrievalException ex) {
99-
throw ex;
98+
catch (Cache.ValueRetrievalException exception) {
99+
throw exception;
100100
}
101-
catch (RuntimeException ex) {
102-
getErrorHandler().handleCacheGetError(ex, cache, key);
101+
catch (RuntimeException exception) {
102+
getErrorHandler().handleCacheGetError(eexceptionx, cache, key);
103103
try {
104104
return valueLoader.call();
105105
}
106-
catch (Exception ex2) {
107-
throw new Cache.ValueRetrievalException(key, valueLoader, ex);
106+
catch (Exception eexception2) {
107+
throw new Cache.ValueRetrievalException(key, valueLoader, exception);
108108
}
109109
}
110110
}
@@ -140,8 +140,8 @@ protected <T> CompletableFuture<T> doRetrieve(Cache cache, Object key, Supplier<
140140
try {
141141
return cache.retrieve(key, valueLoader);
142142
}
143-
catch (RuntimeException ex) {
144-
getErrorHandler().handleCacheGetError(ex, cache, key);
143+
catch (RuntimeException exception) {
144+
getErrorHandler().handleCacheGetError(exception, cache, key);
145145
return valueLoader.get();
146146
}
147147
}
@@ -154,8 +154,8 @@ protected void doPut(Cache cache, Object key, @Nullable Object value) {
154154
try {
155155
cache.put(key, value);
156156
}
157-
catch (RuntimeException ex) {
158-
getErrorHandler().handleCachePutError(ex, cache, key, value);
157+
catch (RuntimeException exception) {
158+
getErrorHandler().handleCachePutError(exception, cache, key, value);
159159
}
160160
}
161161

@@ -172,8 +172,8 @@ protected void doEvict(Cache cache, Object key, boolean immediate) {
172172
cache.evict(key);
173173
}
174174
}
175-
catch (RuntimeException ex) {
176-
getErrorHandler().handleCacheEvictError(ex, cache, key);
175+
catch (RuntimeException exception) {
176+
getErrorHandler().handleCacheEvictError(exception, cache, key);
177177
}
178178
}
179179

@@ -190,8 +190,8 @@ protected void doClear(Cache cache, boolean immediate) {
190190
cache.clear();
191191
}
192192
}
193-
catch (RuntimeException ex) {
194-
getErrorHandler().handleCacheClearError(ex, cache);
193+
catch (RuntimeException exception) {
194+
getErrorHandler().handleCacheClearError(exception, cache);
195195
}
196196
}
197197

0 commit comments

Comments
 (0)