Creates an exception for the specified response, reading a content preview from the response.
public static Task<WebServiceException> CreateWebServiceExceptionWithContentPreviewAsync(
HttpResponseMessage response, string? message = null, Exception? innerException = null)
| parameter | description |
|---|---|
| response | The response. |
| message | The message. |
| innerException | The inner exception. |
A new exception.
Do not call this method if the response stream has already been retrieved.