14 references to CommandException
NuGet.CommandLine.XPlat (4)
Commands\ConfigCommands\ConfigRunners.cs (2)
160
throw new
CommandException
(string.Format(CultureInfo.CurrentCulture, Strings.Error_PathNotFound, directory));
286
throw new
CommandException
(string.Format(CultureInfo.CurrentCulture, Strings.Error_ConfigSetInvalidKey, configKey));
Commands\PackageReferenceCommands\AddPackageReferenceCommandRunner.cs (2)
164
throw new
CommandException
(string.Format(CultureInfo.CurrentCulture, Strings.PrereleaseVersionsAvailable, latestVersion));
167
throw new
CommandException
(Messages.Error_NoVersionsAvailable(packageReferenceArgs.PackageId));
NuGet.Commands (10)
SourcesCommands\SourceRunners.cs (10)
42
throw new
CommandException
(Strings.SourcesCommandAllNameIsReserved);
48
throw new
CommandException
(Strings.SourcesCommandInvalidSource);
57
throw new
CommandException
(Strings.SourcesCommandUniqueName);
63
throw new
CommandException
(Strings.SourcesCommandUniqueSource);
197
throw new
CommandException
(string.Format(CultureInfo.CurrentCulture, Strings.Source_InvalidFormatValue, args.Format));
274
throw new
CommandException
(Strings.SourcesCommandInvalidSource);
281
throw new
CommandException
(Strings.SourcesCommandUniqueSource);
403
throw new
CommandException
(Strings.SourcesCommandCredentialsRequired);
409
throw new
CommandException
(Strings.SourcesCommandCredentialsRequiredWithAuthTypes);
427
throw new
CommandException
(string.Format(Strings.SourcesCommandValidProtocolVersion, minSupportedProtocolVersion, maxSupportedProtocolVersion));