File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
spring-web/src/main/java/org/springframework/web/util Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2024 the original author or authors.
2
+ * Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
24
24
25
25
import org .springframework .core .NestedExceptionUtils ;
26
26
import org .springframework .util .Assert ;
27
+ import org .springframework .web .client .RestClientException ;
27
28
28
29
/**
29
30
* Utility methods to assist with identifying and logging exceptions that indicate
32
33
* and a full stacktrace at TRACE level.
33
34
*
34
35
* @author Rossen Stoyanchev
36
+ * @author Yanming Zhou
35
37
* @since 6.1
36
38
*/
37
39
public class DisconnectedClientHelper {
@@ -83,6 +85,9 @@ else if (logger.isDebugEnabled()) {
83
85
* </ul>
84
86
*/
85
87
public static boolean isClientDisconnectedException (Throwable ex ) {
88
+ if (ex instanceof RestClientException ) {
89
+ return false ;
90
+ }
86
91
String message = NestedExceptionUtils .getMostSpecificCause (ex ).getMessage ();
87
92
if (message != null ) {
88
93
String text = message .toLowerCase (Locale .ROOT );
You can’t perform that action at this time.
0 commit comments