14 references to CommandException
NuGet.CommandLine.XPlat (4)
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)
164throw new CommandException(string.Format(CultureInfo.CurrentCulture, Strings.PrereleaseVersionsAvailable, latestVersion)); 167throw new CommandException(Messages.Error_NoVersionsAvailable(packageReferenceArgs.PackageId));
NuGet.Commands (10)
SourcesCommands\SourceRunners.cs (10)
42throw new CommandException(Strings.SourcesCommandAllNameIsReserved); 48throw new CommandException(Strings.SourcesCommandInvalidSource); 57throw new CommandException(Strings.SourcesCommandUniqueName); 63throw new CommandException(Strings.SourcesCommandUniqueSource); 197throw new CommandException(string.Format(CultureInfo.CurrentCulture, Strings.Source_InvalidFormatValue, args.Format)); 274throw new CommandException(Strings.SourcesCommandInvalidSource); 281throw new CommandException(Strings.SourcesCommandUniqueSource); 403throw new CommandException(Strings.SourcesCommandCredentialsRequired); 409throw new CommandException(Strings.SourcesCommandCredentialsRequiredWithAuthTypes); 427throw new CommandException(string.Format(Strings.SourcesCommandValidProtocolVersion, minSupportedProtocolVersion, maxSupportedProtocolVersion));