Creates an exception for the specified response.
public static WebServiceException CreateWebServiceException(HttpResponseMessage response,
string? message = null, Exception? innerException = null, string? contentPreview = null)
parameter | description |
---|---|
response | The response. |
message | The message. |
innerException | The inner exception. |
contentPreview | The content preview. |
A new exception.