18 instantiations of CommandException
NuGet.CommandLine.XPlat (5)
Commands\ConfigCommands\ConfigRunners.cs (2)
160throw new CommandException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PathNotFound, directory)); 286throw new CommandException(string.Format(CultureInfo.CurrentCulture, Strings.Error_ConfigSetInvalidKey, configKey));
Commands\PackageReferenceCommands\AddPackageReferenceCommandRunner.cs (2)
165throw new CommandException(string.Format(CultureInfo.CurrentCulture, Strings.PrereleaseVersionsAvailable, latestVersion)); 168throw new CommandException(Messages.Error_NoVersionsAvailable(packageReferenceArgs.PackageId));
Utility\AddPackageCommandUtility.cs (1)
108throw new CommandException(Messages.Error_PackagePublishDateMissing(
NuGet.Commands (13)
SourcesCommands\SourceRunners.cs (13)
42throw new CommandException(Strings.SourcesCommandAllNameIsReserved); 48throw new CommandException(Strings.SourcesCommandInvalidSource); 57throw new CommandException(Strings.SourcesCommandUniqueName); 63throw new CommandException(Strings.SourcesCommandUniqueSource); 201throw new CommandException(string.Format(CultureInfo.CurrentCulture, Strings.Source_InvalidFormatValue, args.Format)); 251throw new CommandException(Strings.SourcesCommandNoMatchingSourcesFound, args.Name); 270throw new CommandException(Strings.SourcesCommandNoMatchingSourcesFound, args.Name); 279throw new CommandException(Strings.SourcesCommandInvalidSource); 286throw new CommandException(Strings.SourcesCommandUniqueSource); 376throw new CommandException(Strings.SourcesCommandNoMatchingSourcesFound, name); 416throw new CommandException(Strings.SourcesCommandCredentialsRequired); 422throw new CommandException(Strings.SourcesCommandCredentialsRequiredWithAuthTypes); 440throw new CommandException(string.Format(Strings.SourcesCommandValidProtocolVersion, minSupportedProtocolVersion, maxSupportedProtocolVersion));
6 references to CommandException
NuGet.CommandLine.XPlat (6)
Commands\ConfigCommands\ConfigRunners.cs (6)
33catch (CommandException e) 61catch (CommandException e) 106catch (CommandException e) 128catch (CommandException e) 150/// <exception cref="CommandException"></exception> 271/// <exception cref="CommandException"></exception>