8 instantiations of NuGetOperationException
aspire (5)
NuGet\NuGetClient.cs (5)
162throw new NuGetOperationException(output.Text); 171throw new NuGetOperationException(output.Text); 182throw new NuGetOperationException(output.Text, ex); 340throw new NuGetOperationException(output.Text, ex); 387throw new NuGetOperationException(output.Text, ex);
Aspire.Cli.Tests (3)
NuGet\BundleNuGetPackageCacheTests.cs (1)
354var expectedException = new NuGetOperationException("Error: Search failed." + Environment.NewLine);
NuGet\BundleNuGetServiceTests.cs (2)
136RestoreCallback = (_, _, _, _, _, _, _, _) => throw new NuGetOperationException(output) 156WriteManifestCallback = (_, _, _, _, _) => throw new NuGetOperationException(output)
13 references to NuGetOperationException
aspire (7)
NuGet\BundleNuGetPackageCache.cs (1)
162catch (NuGetOperationException ex)
NuGet\BundleNuGetService.cs (2)
118catch (NuGetOperationException ex) 136catch (NuGetOperationException ex)
NuGet\NuGetClient.cs (4)
33/// <see cref="NuGetOperationException"/>, whose <see cref="NuGetOperationException.Output"/> is the text the helper 174catch (Exception ex) when (ex is not OperationCanceledException and not NuGetOperationException) 577/// exception message when the operation failed. This buffers the same text for <see cref="NuGetOperationException"/>
Aspire.Cli.Tests (6)
NuGet\BundleNuGetPackageCacheTests.cs (1)
354var expectedException = new NuGetOperationException("Error: Search failed." + Environment.NewLine);
NuGet\NuGetClientTests.cs (5)
196var exception = await Assert.ThrowsAsync<NuGetOperationException>(() => client.RestoreAsync( 261await Assert.ThrowsAsync<NuGetOperationException>(() => client.RestoreAsync( 902var exception = await Assert.ThrowsAsync<NuGetOperationException>(() => client.RestoreAsync(