10 instantiations of NuGetOperationException
aspire (6)
NuGet\NuGetClient.cs (6)
258throw new NuGetOperationException(output.Text); 267throw new NuGetOperationException(output.Text); 281throw new NuGetOperationException(output.Text); 455throw new NuGetOperationException(output.Text); 504throw new NuGetOperationException(output.Text); 561throw new NuGetOperationException(output.Text);
Aspire.Cli.Tests (4)
Commands\NewCommandLocalTemplateTests.NuGetValues.cs (1)
184? throw new NuGetOperationException("Lookup failed.")
NuGet\BundleNuGetPackageCacheTests.cs (1)
363var expectedException = new NuGetOperationException("Error: Search failed." + Environment.NewLine);
NuGet\BundleNuGetServiceTests.cs (2)
315RestoreCallback = (_, _, _, _, _, _, _, _, _, _) => throw new NuGetOperationException(output) 338WriteManifestCallback = (_, _, _, _, _) => throw new NuGetOperationException(output)
17 references to NuGetOperationException
aspire (9)
NuGet\BundleNuGetPackageCache.cs (1)
167catch (NuGetOperationException ex)
NuGet\BundleNuGetService.cs (3)
171catch (NuGetOperationException ex) 188catch (NuGetOperationException ex) 343catch (NuGetOperationException exception)
NuGet\NuGetClient.cs (4)
37/// <see cref="NuGetOperationException"/>, whose <see cref="NuGetOperationException.Output"/> is the text the helper 270catch (Exception ex) when (ex is not OperationCanceledException and not NuGetOperationException) 1211/// 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 (8)
NuGet\BundleNuGetPackageCacheTests.cs (1)
363var expectedException = new NuGetOperationException("Error: Search failed." + Environment.NewLine);
NuGet\NuGetClientTests.cs (7)
526var exception = await Assert.ThrowsAsync<NuGetOperationException>(() => client.RestoreAsync( 555var exception = await Assert.ThrowsAsync<NuGetOperationException>(() => client.RestoreAsync( 625await Assert.ThrowsAsync<NuGetOperationException>(() => client.RestoreAsync( 1319var exception = await Assert.ThrowsAsync<NuGetOperationException>(() => client.RestoreAsync(