Skip to content

Commit

Permalink
Revert change createException to createError
Browse files Browse the repository at this point in the history
createError is not available in 5.3.

See gh-27645
  • Loading branch information
poutsma committed Dec 2, 2021
1 parent b77b454 commit be6eeaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ interface RequestHeadersSpec<S extends RequestHeadersSpec<S>> {
* return response.bodyToMono(ErrorContainer.class);
* }
* else {
* return response.createError();
* return response.createException();
* }
* });
* </pre>
Expand Down
2 changes: 1 addition & 1 deletion src/docs/asciidoc/web/webflux-webclient.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ depending on the response status:
}
else {
// Turn to error
return response.createError();
return response.createException();
}
});
----
Expand Down

0 comments on commit be6eeaf

Please sign in to comment.