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