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
63 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 (59)
HttpSource\HttpStreamValidation.cs (1)
136throw 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)
47throw new FatalProtocolException(message, ex);
LegacyFeed\V2FeedParser.cs (3)
484throw new FatalProtocolException(string.Format( 577throw new FatalProtocolException(message, ex); 614throw new FatalProtocolException(string.Format(
LocalRepositories\LocalDependencyInfoResource.cs (2)
82throw new FatalProtocolException(error, ex); 135throw new FatalProtocolException(error, ex);
LocalRepositories\LocalDownloadResource.cs (1)
82throw new FatalProtocolException(ex.Message, ex.InnerException ?? ex);
LocalRepositories\LocalMetadataResource.cs (1)
96throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture,
LocalRepositories\LocalV2FindPackageByIdResource.cs (2)
445throw new FatalProtocolException(message, ex); 451throw new FatalProtocolException(message, ex);
LocalRepositories\LocalV3FindPackageByIdResource.cs (3)
460throw new FatalProtocolException(message, inner); 466throw new FatalProtocolException(message, ex); 542throw new FatalProtocolException(message);
Providers\RepositorySignatureResourceProvider.cs (2)
62throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.RepositorySignaturesResourceMustBeHttps, source.PackageSource.Source)); 120throw new FatalProtocolException(message, ex);
Providers\ServiceIndexResourceV3Provider.cs (1)
188throw 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)
133throw new FatalProtocolException(Strings.Protocol_MissingSearchService);
Resources\DependencyInfoResourceV3.cs (3)
91throw new FatalProtocolException(error, ex); 129throw new FatalProtocolException(error, ex); 155throw new FatalProtocolException(error, ex);
Resources\MetadataResourceV3.cs (1)
56throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_PackageMetadataError, id, _regResource.BaseUri), ex);
Resources\PackageSearchResourceV3.cs (3)
172throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_MalformedMetadataError, queryUrl.Uri), ex); 176throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_BadSource, queryUrl.Uri), ex); 186throw new FatalProtocolException(Strings.Protocol_MissingSearchService);
Resources\RawSearchResourceV3.cs (3)
103throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_MalformedMetadataError, queryUrl.Uri), ex); 107throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Protocol_BadSource, queryUrl.Uri), ex); 117throw new FatalProtocolException(Strings.Protocol_MissingSearchService);
Resources\RepositorySignatureResource.cs (6)
29throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.AllRepositorySigned, source.PackageSource.Source)); 31throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.SigningCertificates, source.PackageSource.Source)); 41throw new FatalProtocolException(Strings.RepositoryContentUrlMustBeHttps); 51throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.AllRepositorySigned, source.PackageSource.Source)); 54throw new FatalProtocolException(string.Format(CultureInfo.CurrentCulture, Strings.Log_FailedToParseRepoSignInfor, JsonProperties.SigningCertificates, source.PackageSource.Source)); 61throw new FatalProtocolException(Strings.RepositoryContentUrlMustBeHttps);
Resources\VulnerabilityInfoResourceV3.cs (11)
60throw new FatalProtocolException(message: ex.Message, innerException: ex); 66throw new FatalProtocolException(message); 112throw new FatalProtocolException(message: ex.Message, innerException: ex); 118throw new FatalProtocolException(message); 144AddException(new FatalProtocolException(message), ref exceptions); 215AddException(new FatalProtocolException(message), ref exceptions); 223AddException(new FatalProtocolException(message), ref exceptions); 243AddException(new FatalProtocolException(message), ref exceptions); 250AddException(new FatalProtocolException(message), ref exceptions); 257AddException(new FatalProtocolException(message), ref exceptions); 264AddException(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)
1892catch (FatalProtocolException) 2057catch (FatalProtocolException)
RestoreCommand\SourceRepositoryDependencyProvider.cs (8)
217catch (FatalProtocolException e) 379catch (FatalProtocolException e) when (e is not InvalidCacheProtocolException) 480if (exception is FatalProtocolException e) 498catch (FatalProtocolException e) 646catch (FatalProtocolException e) when (catchAndLogExceptions) 665private async Task LogWarningAsync(ILogger logger, string id, FatalProtocolException e) 673private async Task LogErrorAsync(ILogger logger, string id, FatalProtocolException e) 702while ((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)
43catch (Exception ex) when (!(ex is FatalProtocolException) && (!(ex is OperationCanceledException)))
Providers\ServiceIndexResourceV3Provider.cs (1)
117/// <exception cref="FatalProtocolException">Encapsulates all other exceptions.</exception>
Resources\VulnerabilityInfoResourceV3.cs (4)
35/// <exception cref="FatalProtocolException">When various HTTP or deserialization exceptions occur.</exception> 56catch (Exception ex) when (ex is not FatalProtocolException) 84/// <exception cref="FatalProtocolException">If various HTTP or deserialization exceptions occur.</exception> 108catch (Exception ex) when (ex is not FatalProtocolException)