2 types derived from FatalProtocolException
NuGet.Protocol (2)
Exceptions\InvalidCacheProtocolException.cs (1)
14public abstract class InvalidCacheProtocolException : FatalProtocolException
HttpSource\HttpSourceException.cs (1)
9public class HttpSourceException : FatalProtocolException
66 instantiations of FatalProtocolException
NuGet.Commands (1)
RestoreCommand\SourceRepositoryDependencyProvider.cs (1)
305throw new FatalProtocolException(message);
NuGet.DependencyResolver.Core (1)
ResolverUtility.cs (1)
103throw new FatalProtocolException(message, ex);
NuGet.PackageManagement (3)
PackageDownloader.cs (3)
231throw new FatalProtocolException(errors.ToString()); 321throw new FatalProtocolException(string.Format( 339throw new FatalProtocolException(string.Format(
NuGet.Protocol (61)
HttpSource\HttpStreamValidation.cs (1)
183throw new FatalProtocolException(message);
LegacyFeed\DependencyInfoResourceV2Feed.cs (2)
58throw new FatalProtocolException(error, ex); 89throw new FatalProtocolException(error, ex);
LegacyFeed\DownloadResourceV2Feed.cs (1)
104throw new FatalProtocolException(message, ex);
LegacyFeed\MetadataResourceV2Feed.cs (2)
80throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, packageId, _source), ex); 96throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, identity, _source), ex);
LegacyFeed\ODataServiceDocumentUtils.cs (1)
45throw new FatalProtocolException(message, ex);
LegacyFeed\V2FeedParser.cs (3)
482throw new FatalProtocolException(string.Format( 575throw new FatalProtocolException(message, ex); 612throw new FatalProtocolException(string.Format(
LocalRepositories\LocalDependencyInfoResource.cs (2)
81throw new FatalProtocolException(error, ex); 134throw new FatalProtocolException(error, ex);
LocalRepositories\LocalDownloadResource.cs (1)
81throw new FatalProtocolException(ex.Message, ex.InnerException ?? ex);
LocalRepositories\LocalMetadataResource.cs (1)
95throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture,
LocalRepositories\LocalV2FindPackageByIdResource.cs (2)
444throw new FatalProtocolException(message, ex); 450throw new FatalProtocolException(message, ex);
LocalRepositories\LocalV3FindPackageByIdResource.cs (3)
459throw new FatalProtocolException(message, inner); 465throw new FatalProtocolException(message, ex); 541throw new FatalProtocolException(message);
Providers\RepositorySignatureResourceProvider.cs (4)
60throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.RepositorySignaturesResourceMustBeHttps, source.PackageSource.Source)); 96?? throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadRepositorySignature, repositorySignaturesResourceUri.AbsoluteUri)); 123?? throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToReadRepositorySignature, repositorySignaturesResourceUri.AbsoluteUri)); 149throw new FatalProtocolException(message, ex);
Providers\ServiceIndexResourceV3Provider.cs (1)
187throw new FatalProtocolException(message, ex);
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResource.cs (1)
574throw new FatalProtocolException(message, ex);
RemoteRepositories\PackageUtilities.cs (1)
28throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToGetNuspecStream, id));
RemoteRepositories\PluginFindPackageByIdResource.cs (1)
450throw new FatalProtocolException(message, ex);
RemoteRepositories\RemoteV2FindPackageByIdResource.cs (2)
527throw new FatalProtocolException(string.Format( 559throw new FatalProtocolException(message, ex);
Resources\AutoCompleteResourceV3.cs (1)
135throw new FatalProtocolException(Strings.Protocol_MissingSearchService);
Resources\DependencyInfoResourceV3.cs (3)
96throw new FatalProtocolException(error, ex); 134throw new FatalProtocolException(error, ex); 160throw new FatalProtocolException(error, ex);
Resources\MetadataResourceV3.cs (1)
75throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, id, _regResource.BaseUri), ex);
Resources\PackageSearchResourceV3.cs (3)
174throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_MalformedMetadataError, queryUrl.Uri), ex); 178throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_BadSource, queryUrl.Uri), ex); 188throw new FatalProtocolException(Strings.Protocol_MissingSearchService);
Resources\RawSearchResourceV3.cs (3)
97throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_MalformedMetadataError, queryUrl.Uri), ex); 101throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_BadSource, queryUrl.Uri), ex); 111throw new FatalProtocolException(Strings.Protocol_MissingSearchService);
Resources\RepositorySignatureResource.cs (6)
34throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.AllRepositorySigned, source.PackageSource.Source)); 36throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.SigningCertificates, source.PackageSource.Source)); 46throw new FatalProtocolException(Strings.RepositoryContentUrlMustBeHttps); 59throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.AllRepositorySigned, source.PackageSource.Source)); 62throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.SigningCertificates, source.PackageSource.Source)); 69throw new FatalProtocolException(Strings.RepositoryContentUrlMustBeHttps);
Resources\VulnerabilityInfoResourceV3.cs (11)
61throw new FatalProtocolException(message: ex.Message, innerException: ex); 67throw new FatalProtocolException(message); 116throw new FatalProtocolException(message: ex.Message, innerException: ex); 122throw new FatalProtocolException(message); 148AddException(new FatalProtocolException(message), ref exceptions); 219AddException(new FatalProtocolException(message), ref exceptions); 227AddException(new FatalProtocolException(message), ref exceptions); 247AddException(new FatalProtocolException(message), ref exceptions); 254AddException(new FatalProtocolException(message), ref exceptions); 261AddException(new FatalProtocolException(message), ref exceptions); 268AddException(new FatalProtocolException(message), ref exceptions);
Utility\GetDownloadResultUtility.cs (1)
125throw new FatalProtocolException(message, ex);
Utility\LocalFolderUtility.cs (3)
831throw new FatalProtocolException(message, ex); 849throw new FatalProtocolException(message, ex); 1239throw new FatalProtocolException(message, ex);
26 references to FatalProtocolException
dotnet (4)
NugetPackageDownloader\NuGetPackageDownloader.cs (4)
924catch (FatalProtocolException e) when (_restoreActionConfig.IgnoreFailedSources) 929catch (FatalProtocolException e) 1005catch (FatalProtocolException) // this most often means that the source didn't actually have a SearchAutocompleteService 1024catch (FatalProtocolException) // this most often means that the source didn't actually have a SearchAutocompleteService
dotnet-aot (4)
src\sdk\src\Cli\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (4)
924catch (FatalProtocolException e) when (_restoreActionConfig.IgnoreFailedSources) 929catch (FatalProtocolException e) 1005catch (FatalProtocolException) // this most often means that the source didn't actually have a SearchAutocompleteService 1024catch (FatalProtocolException) // this most often means that the source didn't actually have a SearchAutocompleteService
NuGet.CommandLine.XPlat (1)
Commands\PackageSearch\PackageSearchRunner.cs (1)
102catch (FatalProtocolException ex)
NuGet.Commands (10)
RestoreCommand\RestoreCommand.cs (2)
2106catch (FatalProtocolException) 2271catch (FatalProtocolException)
RestoreCommand\SourceRepositoryDependencyProvider.cs (8)
238catch (FatalProtocolException e) 416catch (FatalProtocolException e) when (e is not InvalidCacheProtocolException) 517if (exception is FatalProtocolException e) 535catch (FatalProtocolException e) 683catch (FatalProtocolException e) when (catchAndLogExceptions) 702private async Task LogWarningAsync(ILogger logger, string id, FatalProtocolException e) 710private async Task LogErrorAsync(ILogger logger, string id, FatalProtocolException e) 739while ((currentException is FatalProtocolException || currentException is not ILogMessageException) && currentException != null)
NuGet.Protocol (7)
LegacyFeed\DownloadResourceV2Feed.cs (1)
101catch (Exception ex) when (!(ex is FatalProtocolException))
LegacyFeed\ODataServiceDocumentUtils.cs (1)
41catch (Exception ex) when (!(ex is FatalProtocolException) && (!(ex is OperationCanceledException)))
Providers\ServiceIndexResourceV3Provider.cs (1)
115/// <exception cref="FatalProtocolException">Encapsulates all other exceptions.</exception>
Resources\VulnerabilityInfoResourceV3.cs (4)
35/// <exception cref="FatalProtocolException">When various HTTP or deserialization exceptions occur.</exception> 57catch (Exception ex) when (ex is not FatalProtocolException) 87/// <exception cref="FatalProtocolException">If various HTTP or deserialization exceptions occur.</exception> 112catch (Exception ex) when (ex is not FatalProtocolException)