11 instantiations of NuGetOperationException
aspire (7)
NuGet\NuGetClient.cs (7)
274throw new NuGetOperationException(output.Text); 283throw new NuGetOperationException(output.Text); 297throw new NuGetOperationException(output.Text); 472throw new NuGetOperationException(output.Text); 521throw new NuGetOperationException(output.Text); 583throw new NuGetOperationException(output.Text); 788throw new NuGetOperationException(ErrorStrings.FailedToParsePackageSearchResults);
Aspire.Cli.Tests (4)
Commands\NewCommandLocalTemplateTests.NuGetValues.cs (1)
184? throw new NuGetOperationException("Lookup failed.")
NuGet\BundleNuGetPackageCacheTests.cs (1)
418var expectedException = new NuGetOperationException("Error: Search failed." + Environment.NewLine);
NuGet\BundleNuGetServiceTests.cs (2)
508RestoreCallback = (_, _, _, _, _, _, _, _, _, _) => throw new NuGetOperationException(output) 531WriteManifestCallback = (_, _, _, _, _) => throw new NuGetOperationException(output)
21 references to NuGetOperationException
aspire (9)
NuGet\BundleNuGetPackageCache.cs (1)
181catch (NuGetOperationException ex)
NuGet\BundleNuGetService.cs (3)
176catch (NuGetOperationException ex) 195catch (NuGetOperationException ex) 391catch (NuGetOperationException exception)
NuGet\NuGetClient.cs (4)
38/// <see cref="NuGetOperationException"/>, whose <see cref="NuGetOperationException.Output"/> is the text the helper 286catch (Exception ex) when (ex is not OperationCanceledException and not NuGetOperationException) 1274/// exception message when the operation failed. This buffers the same text for <see cref="NuGetOperationException"/>
Templating\TemplateEngineFactory.NuGetValues.cs (1)
62catch (NuGetOperationException ex)
Aspire.Cli.Tests (12)
NuGet\BundleNuGetPackageCacheTests.cs (1)
418var expectedException = new NuGetOperationException("Error: Search failed." + Environment.NewLine);
NuGet\NuGetClientTests.cs (11)
61var failure = await Assert.ThrowsAsync<NuGetOperationException>(AcquireAsync); 503var exception = Assert.Throws<NuGetOperationException>(() => client.ResolveSdkPackageSearchSourceNames( 769var exception = await Assert.ThrowsAsync<NuGetOperationException>(() => client.RestoreAsync( 798var exception = await Assert.ThrowsAsync<NuGetOperationException>(() => client.RestoreAsync( 868await Assert.ThrowsAsync<NuGetOperationException>(() => client.RestoreAsync( 1562var exception = await Assert.ThrowsAsync<NuGetOperationException>(() => client.RestoreAsync(