You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the handleHttpStatusCodeError method, when it throws a RestApiException there are no parentheses around the ternary conditional error == null ? "" : error.getResponseBodyAsString().
This means that the error object is concatenated onto the preceding exception message before it is compared to null. The effect of which is that the exception message will always and only contain the response body string, never the uri variables or http status code.
In the
handleHttpStatusCodeError
method, when it throws aRestApiException
there are no parentheses around the ternary conditionalerror == null ? "" : error.getResponseBodyAsString()
.This means that the
error
object is concatenated onto the preceding exception message before it is compared to null. The effect of which is that the exception message will always and only contain the response body string, never the uri variables or http status code.Source of method
The text was updated successfully, but these errors were encountered: