tools\Aspire.TestTools\GitHubApiClient.cs (13)
110throw Error(HttpMethod.Get, original, "pagination exceeds the 1000-page limit.");
115throw Error(HttpMethod.Get, original, "invalid or cyclic pagination link.");
269throw Error(method, original, "the HTTP client must not have default request headers.");
279throw Error(method, original, "authentication failed.", inner: ex);
284throw Error(method, original, "authentication failed.");
333throw Error(method, original, "invalid or cyclic redirect.", response.StatusCode);
340throw Error(method, original, DescribeHttpFailure(response), response.StatusCode);
467throw Error(method, original, "invalid JSON response.", inner: ex);
494throw Error(method, original, $"response exceeds the {maximumBytes}-byte limit.");
500throw Error(method, original, "response body could not be read completely.", inner: ex);
522throw Error(HttpMethod.Get, original, "invalid pagination link.");
537throw Error(HttpMethod.Get, original, "invalid pagination link.");
582return ex as GitHubApiException ?? Error(