42
42
* mappings has a match for the {@linkplain ClientHttpResponse#getStatusCode()
43
43
* status code} of a given {@code ClientHttpResponse},
44
44
* {@link #hasError(ClientHttpResponse)} will return {@code true}, and
45
- * {@link #handleError(ClientHttpResponse)} will attempt to use the
46
- * {@linkplain #setMessageConverters(List) configured message converters} to
47
- * convert the response into the mapped subclass of {@link RestClientException}.
48
- * Note that the {@linkplain #setStatusMapping(Map) status mapping} takes
49
- * precedence over {@linkplain #setSeriesMapping(Map) series mapping}.
45
+ * {@link #handleError(ClientHttpResponse, HttpStatusCode, URI, HttpMethod)}
46
+ * will attempt to use the {@linkplain #setMessageConverters(List) configured
47
+ * message converters} to convert the response into the mapped subclass of
48
+ * {@link RestClientException}. Note that the
49
+ * {@linkplain #setStatusMapping(Map) status mapping} takes precedence over
50
+ * {@linkplain #setSeriesMapping(Map) series mapping}.
50
51
*
51
52
* <p>If there is no match, this error handler will default to the behavior of
52
53
* {@link DefaultResponseErrorHandler}. Note that you can override this default
@@ -98,9 +99,10 @@ public void setMessageConverters(List<HttpMessageConverter<?>> messageConverters
98
99
* If this mapping has a match
99
100
* for the {@linkplain ClientHttpResponse#getStatusCode() status code} of a given
100
101
* {@code ClientHttpResponse}, {@link #hasError(ClientHttpResponse)} will return
101
- * {@code true} and {@link #handleError(ClientHttpResponse)} will attempt to use the
102
- * {@linkplain #setMessageConverters(List) configured message converters} to convert the
103
- * response into the mapped subclass of {@link RestClientException}.
102
+ * {@code true} and {@link #handleError(ClientHttpResponse, HttpStatusCode, URI, HttpMethod)}
103
+ * will attempt to use the {@linkplain #setMessageConverters(List) configured
104
+ * message converters} to convert the response into the mapped subclass of
105
+ * {@link RestClientException}.
104
106
*/
105
107
public void setStatusMapping (Map <HttpStatusCode , Class <? extends RestClientException >> statusMapping ) {
106
108
if (!CollectionUtils .isEmpty (statusMapping )) {
@@ -113,9 +115,10 @@ public void setStatusMapping(Map<HttpStatusCode, Class<? extends RestClientExcep
113
115
* If this mapping has a match
114
116
* for the {@linkplain ClientHttpResponse#getStatusCode() status code} of a given
115
117
* {@code ClientHttpResponse}, {@link #hasError(ClientHttpResponse)} will return
116
- * {@code true} and {@link #handleError(ClientHttpResponse)} will attempt to use the
117
- * {@linkplain #setMessageConverters(List) configured message converters} to convert the
118
- * response into the mapped subclass of {@link RestClientException}.
118
+ * {@code true} and {@link #handleError(ClientHttpResponse, HttpStatusCode, URI, HttpMethod)}
119
+ * will attempt to use the {@linkplain #setMessageConverters(List) configured
120
+ * message converters} to convert the response into the mapped subclass of
121
+ * {@link RestClientException}.
119
122
*/
120
123
public void setSeriesMapping (Map <HttpStatus .Series , Class <? extends RestClientException >> seriesMapping ) {
121
124
if (!CollectionUtils .isEmpty (seriesMapping )) {
0 commit comments