ClientException.fromResponse constructor

ClientException.fromResponse(
  1. Response response
)

Constructs a ClientException from the response.

Implementation

ClientException.fromResponse(Response response)
    : message = response.body,
      uri = response.request?.url,
      statusCode = response.statusCode,
      reasonPhrase = response.reasonPhrase;