Skip to content

Commit

Permalink
Change createException to createError
Browse files Browse the repository at this point in the history
  • Loading branch information
poutsma committed Dec 2, 2021
1 parent 6582787 commit b77b454
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.createException();
* return response.createError();
* }
* });
* </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.createException();
return response.createError();
}
});
----
Expand Down

0 comments on commit b77b454

Please sign in to comment.