Exception Method
Constructor method to extract information from HttpResponseMessage object.
Syntax
Exception(httpResponse: HttpResponseMessage)
Parameters
httpResponse
Type: HttpResponseMessage
HttpResponseMessage object containing the API response of the HttpClient.