Revert change createException to createError
createError is not available in 5.3. See gh-27645
This commit is contained in:
parent
b77b45434f
commit
be6eeafe78
|
@ -530,7 +530,7 @@ public interface WebClient {
|
|||
* return response.bodyToMono(ErrorContainer.class);
|
||||
* }
|
||||
* else {
|
||||
* return response.createError();
|
||||
* return response.createException();
|
||||
* }
|
||||
* });
|
||||
* </pre>
|
||||
|
|
|
@ -559,7 +559,7 @@ depending on the response status:
|
|||
}
|
||||
else {
|
||||
// Turn to error
|
||||
return response.createError();
|
||||
return response.createException();
|
||||
}
|
||||
});
|
||||
----
|
||||
|
|
Loading…
Reference in New Issue