RestException constructor

RestException(
  1. RestResponse response
)

An HTTP error encountered during a REST API call, i.e. for calls returning non-2xx status codes.

Implementation

RestException(this.response)
    : super(response.body, httpStatusCode: response.statusCode);