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