Revert change createException to createError

createError is not available in 5.3.

See gh-27645
This commit is contained in:
Arjen Poutsma 2021-12-02 15:59:51 +01:00
parent b77b45434f
commit be6eeafe78
2 changed files with 2 additions and 2 deletions

View File

@ -530,7 +530,7 @@ public interface WebClient {
* return response.bodyToMono(ErrorContainer.class);
* }
* else {
* return response.createError();
* return response.createException();
* }
* });
* </pre>

View File

@ -559,7 +559,7 @@ depending on the response status:
}
else {
// Turn to error
return response.createError();
return response.createException();
}
});
----