throwFromResponse

@InternalApi()
public static void throwFromResponse(Response response)

Throws an ApiException from the response if the response is not a OK status.

Parameters

response

The response from the API call.


public static void throwFromResponse(CloseableHttpResponse response)

Deprecated

Use throwFromResponse instead.

Throws an ApiException from the response if the response is not a OK status.

Parameters

response

The response from the API call.