Skip to content

Commit 5f065b5

Browse files
committed
Add missing method override
Signed-off-by: Filip Hrisafov <[email protected]>
1 parent 8dca2fa commit 5f065b5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

auto-configurations/common/spring-ai-autoconfigure-retry/src/main/java/org/springframework/ai/retry/autoconfigure/SpringAiRetryAutoConfiguration.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package org.springframework.ai.retry.autoconfigure;
1818

1919
import java.io.IOException;
20+
import java.net.URI;
2021
import java.nio.charset.StandardCharsets;
2122

2223
import org.slf4j.Logger;
@@ -30,6 +31,7 @@
3031
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
3132
import org.springframework.boot.context.properties.EnableConfigurationProperties;
3233
import org.springframework.context.annotation.Bean;
34+
import org.springframework.http.HttpMethod;
3335
import org.springframework.http.client.ClientHttpResponse;
3436
import org.springframework.lang.NonNull;
3537
import org.springframework.retry.RetryCallback;
@@ -86,6 +88,11 @@ public boolean hasError(@NonNull ClientHttpResponse response) throws IOException
8688
return response.getStatusCode().isError();
8789
}
8890

91+
@Override
92+
public void handleError(URI url, HttpMethod method, ClientHttpResponse response) throws IOException {
93+
handleError(response);
94+
}
95+
8996
// On purposes commented out so that the code can compile both with Spring 6
9097
// and Spring 7
9198
// @Override

0 commit comments

Comments
 (0)