Change createException to createError
See gh-27645
This commit is contained in:
@@ -530,7 +530,7 @@ public interface WebClient {
|
||||
* return response.bodyToMono(ErrorContainer.class);
|
||||
* }
|
||||
* else {
|
||||
* return response.createException();
|
||||
* return response.createError();
|
||||
* }
|
||||
* });
|
||||
* </pre>
|
||||
|
||||
@@ -559,7 +559,7 @@ depending on the response status:
|
||||
}
|
||||
else {
|
||||
// Turn to error
|
||||
return response.createException();
|
||||
return response.createError();
|
||||
}
|
||||
});
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user