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
65 instantiations of FatalProtocolException
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)
60throw new FatalProtocolException(error, ex); 91throw new FatalProtocolException(error, ex);
LegacyFeed\DownloadResourceV2Feed.cs (1)
108throw new FatalProtocolException(message, ex);
LegacyFeed\MetadataResourceV2Feed.cs (2)
82throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, packageId, _source), ex); 98throw 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)
452throw new FatalProtocolException(message, ex);
RemoteRepositories\RemoteV2FindPackageByIdResource.cs (2)
529throw new FatalProtocolException(string.Format( 561throw new FatalProtocolException(message, ex);
Resources\AutoCompleteResourceV3.cs (1)
135throw new FatalProtocolException(Strings.Protocol_MissingSearchService);
Resources\DependencyInfoResourceV3.cs (3)
98throw new FatalProtocolException(error, ex); 136throw new FatalProtocolException(error, ex); 162throw new FatalProtocolException(error, ex);
Resources\MetadataResourceV3.cs (1)
76throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, id, _regResource.BaseUri), ex);
Resources\PackageSearchResourceV3.cs (3)
173throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_MalformedMetadataError, queryUrl.Uri), ex); 177throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_BadSource, queryUrl.Uri), ex); 187throw 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);
21 references to FatalProtocolException
dotnet (3)
NugetPackageDownloader\NuGetPackageDownloader.cs (3)
924catch (FatalProtocolException e) when (_restoreActionConfig.IgnoreFailedSources) 1001catch (FatalProtocolException) // this most often means that the source didn't actually have a SearchAutocompleteService 1020catch (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)
1936catch (FatalProtocolException) 2101catch (FatalProtocolException)
RestoreCommand\SourceRepositoryDependencyProvider.cs (8)
233catch (FatalProtocolException e) 395catch (FatalProtocolException e) when (e is not InvalidCacheProtocolException) 496if (exception is FatalProtocolException e) 514catch (FatalProtocolException e) 662catch (FatalProtocolException e) when (catchAndLogExceptions) 681private async Task LogWarningAsync(ILogger logger, string id, FatalProtocolException e) 689private async Task LogErrorAsync(ILogger logger, string id, FatalProtocolException e) 718while ((currentException is FatalProtocolException || currentException is not ILogMessageException) && currentException != null)
NuGet.Protocol (7)
LegacyFeed\DownloadResourceV2Feed.cs (1)
105catch (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)