18 instantiations of CommandException
NuGet.CommandLine.XPlat (5)
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)
165
throw new
CommandException
(string.Format(CultureInfo.CurrentCulture, Strings.PrereleaseVersionsAvailable, latestVersion));
168
throw new
CommandException
(Messages.Error_NoVersionsAvailable(packageReferenceArgs.PackageId));
Utility\AddPackageCommandUtility.cs (1)
108
throw new
CommandException
(Messages.Error_PackagePublishDateMissing(
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);
201
throw new
CommandException
(string.Format(CultureInfo.CurrentCulture, Strings.Source_InvalidFormatValue, args.Format));
251
throw new
CommandException
(Strings.SourcesCommandNoMatchingSourcesFound, args.Name);
270
throw new
CommandException
(Strings.SourcesCommandNoMatchingSourcesFound, args.Name);
279
throw new
CommandException
(Strings.SourcesCommandInvalidSource);
286
throw new
CommandException
(Strings.SourcesCommandUniqueSource);
376
throw new
CommandException
(Strings.SourcesCommandNoMatchingSourcesFound, name);
416
throw new
CommandException
(Strings.SourcesCommandCredentialsRequired);
422
throw new
CommandException
(Strings.SourcesCommandCredentialsRequiredWithAuthTypes);
440
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>