17 instantiations of 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 (13)
SourcesCommands\SourceRunners.cs (13)
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));
247
throw new
CommandException
(Strings.SourcesCommandNoMatchingSourcesFound, args.Name);
267
throw new
CommandException
(Strings.SourcesCommandNoMatchingSourcesFound, args.Name);
274
throw new
CommandException
(Strings.SourcesCommandInvalidSource);
281
throw new
CommandException
(Strings.SourcesCommandUniqueSource);
363
throw new
CommandException
(Strings.SourcesCommandNoMatchingSourcesFound, name);
403
throw new
CommandException
(Strings.SourcesCommandCredentialsRequired);
409
throw new
CommandException
(Strings.SourcesCommandCredentialsRequiredWithAuthTypes);
427
throw new
CommandException
(string.Format(Strings.SourcesCommandValidProtocolVersion, minSupportedProtocolVersion, maxSupportedProtocolVersion));
6 references to CommandException
NuGet.CommandLine.XPlat (6)
Commands\ConfigCommands\ConfigRunners.cs (6)
33
catch (
CommandException
e)
61
catch (
CommandException
e)
106
catch (
CommandException
e)
128
catch (
CommandException
e)
150
/// <exception cref="
CommandException
"></exception>
271
/// <exception cref="
CommandException
"></exception>