6 instantiations of GitHubApiException
Aspire.TestTools (6)
GitHubApiClient.cs (6)
82
throw new
GitHubApiException
("The default GitHub client supports github.com only.");
251
throw new
GitHubApiException
($"{method}: endpoint must use the configured HTTPS API origin.");
591
=>
new
($"{method} {uri.AbsolutePath}: {message}", status, inner);
643
throw new
GitHubApiException
("GitHub authentication is unavailable. Set GH_TOKEN or sign in with gh.");
648
throw new
GitHubApiException
("GitHub credential lookup failed.", innerException: ex);
682
throw new
GitHubApiException
("GitHub credential lookup exceeded its output limit.");
5 references to GitHubApiException
Aspire.TestTools (5)
GitHubApiClient.cs (5)
192
var
error = Wrap(ex, HttpMethod.Get, uri, cancellationToken);
577
=> ex is
GitHubApiException
or HttpRequestException or IOException or OperationCanceledException or UnauthorizedAccessException or FormatException;
579
private static
GitHubApiException
Wrap(Exception ex, HttpMethod method, Uri uri, CancellationToken callerToken)
582
return ex as
GitHubApiException
?? Error(
589
private static
GitHubApiException
Error(HttpMethod method, Uri uri, string message, HttpStatusCode? status = null, Exception? inner = null)