ClientException.fromResponse constructor
ClientException.fromResponse(
- 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;