76 references to GracefulException
dotnet (68)
CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (2)
91
throw new
GracefulException
(string.Format(CliStrings.NeedRunToolRestore,
100
throw new
GracefulException
(string.Format(CliStrings.NeedRunToolRestore,
CommandFactory\CommandResolution\PackagedCommandSpecFactory.cs (1)
80
throw new
GracefulException
(string.Format(
CommandFactory\CommandResolution\PackagedCommandSpecFactoryWithCliRuntime.cs (1)
24
throw new
GracefulException
(string.Format(CliStrings.CouldNotFindToolRuntimeConfigFile,
CommandFactory\CommandResolution\ProjectFactory.cs (1)
78
throw new
GracefulException
(string.Format(
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (2)
323
throw new
GracefulException
(CliStrings.DepsJsonGeneratorProjectNotSet);
426
throw new
GracefulException
(string.Format(CliStrings.UnableToGenerateDepsJson, toolDepsJsonGeneratorProject));
CommandFactory\CommandResolution\ToolPathCalculator.cs (1)
33
throw new
GracefulException
(string.Format(
Commands\Package\Add\PackageAddCommand.cs (2)
102
throw new
GracefulException
(string.Format(CliCommandStrings.CmdDGFileException, projectFilePath));
171
throw new
GracefulException
(CliCommandStrings.PrereleaseAndVersionAreNotSupportedAtTheSameTime);
Commands\Package\List\PackageListCommand.cs (1)
107
throw new
GracefulException
(CliCommandStrings.OptionsCannotBeCombined);
Commands\Package\Remove\PackageRemoveCommand.cs (1)
21
throw new
GracefulException
(CliCommandStrings.PackageRemoveSpecifyExactlyOnePackageReference);
Commands\Reference\Remove\ReferenceRemoveCommand.cs (1)
29
throw new
GracefulException
(CliStrings.SpecifyAtLeastOneReferenceToRemove);
Commands\Run\RunCommand.cs (2)
331
throw new
GracefulException
(CliCommandStrings.RunCommandException);
512
throw new
GracefulException
(
Commands\Sdk\Check\ProductCollectionProvider.cs (2)
23
throw new
GracefulException
(string.Format(CliCommandStrings.ReleasesLibraryFailed, e.Message));
35
throw new
GracefulException
(string.Format(CliCommandStrings.ReleasesLibraryFailed, e.Message));
Commands\Solution\Add\SolutionAddCommand.cs (2)
55
throw new
GracefulException
(CliStrings.SpecifyAtLeastOneProjectToAdd);
183
throw new
GracefulException
(string.Format(CliStrings.SolutionFolderAlreadyContainsProjectWithFilename, rootFolder.Name, projectFileName));
Commands\Solution\Migrate\SolutionMigrateCommand.cs (1)
25
throw new
GracefulException
(CliCommandStrings.CannotMigrateSlnx);
Commands\Solution\Remove\SolutionRemoveCommand.cs (1)
33
throw new
GracefulException
(CliStrings.SpecifyAtLeastOneProjectToRemove);
Commands\Solution\SolutionArgumentValidator.cs (2)
24
throw new
GracefulException
(message);
32
throw new
GracefulException
(CliCommandStrings.SolutionFolderAndInRootMutuallyExclusive);
Commands\Store\StoreCommand.cs (1)
34
throw new
GracefulException
(CliCommandStrings.SpecifyManifests);
Commands\Test\MTP\SolutionAndProjectUtility.cs (1)
316
throw new
GracefulException
(
Commands\Test\MTP\ValidationUtility.cs (6)
30
throw new
GracefulException
(CliCommandStrings.CmdMultipleBuildPathOptionsErrorDescription);
46
throw new
GracefulException
(CliCommandStrings.CmdOptionCannotBeUsedWithTestModulesDescription);
88
throw new
GracefulException
(CliCommandStrings.TestCommandUseSolution);
94
throw new
GracefulException
(CliCommandStrings.TestCommandUseProject);
100
throw new
GracefulException
(CliCommandStrings.TestCommandUseTestModules);
104
throw new
GracefulException
(CliCommandStrings.TestCommandUseDirectoryWithSwitch);
Commands\Tool\Common\ToolAppliedOption.cs (3)
77
throw new
GracefulException
(
101
throw new
GracefulException
(
113
throw new
GracefulException
(
Commands\Tool\Install\ParseResultExtension.cs (3)
20
throw new
GracefulException
(CliStrings.PackageIdentityArgumentVersionOptionConflict);
29
throw new
GracefulException
(
50
throw new
GracefulException
(
Commands\Tool\Install\ToolInstallCommand.cs (1)
41
throw new
GracefulException
(
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
135
throw new
GracefulException
(CliCommandStrings.ToolInstallPackageIdMissing);
149
throw new
GracefulException
(string.Format(CliCommandStrings.ToolInstallNuGetConfigurationFileDoesNotExist, Path.GetFullPath(_configFilePath)));
Commands\Tool\Install\ToolInstallLocalInstaller.cs (1)
53
throw new
GracefulException
(
Commands\Tool\List\ToolListGlobalOrToolPathCommand.cs (1)
42
throw new
GracefulException
(
Commands\Tool\ToolCommandSpecCreator.cs (1)
36
throw new
GracefulException
(string.Format(CliStrings.ToolSettingsUnsupportedRunner,
Commands\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommand.cs (1)
42
throw new
GracefulException
(
Commands\Tool\Update\ToolUpdateCommand.cs (2)
80
throw new
GracefulException
(message);
89
throw new
GracefulException
(CliStrings.PackageIdentityArgumentVersionOptionConflict);
Commands\Workload\Clean\WorkloadCleanCommand.cs (1)
38
throw new
GracefulException
(CliCommandStrings.SdkVersionOptionNotSupported);
Commands\Workload\Install\NetSdkMsiInstallerClient.cs (2)
791
throw new
GracefulException
(string.Format(CliCommandStrings.FailedToExtractMsi, msiPath));
806
throw new
GracefulException
(string.Format(CliCommandStrings.ExpectedSingleManifest, nupkgPath));
Commands\Workload\InstallingWorkloadCommand.cs (1)
120
throw new
GracefulException
(CliCommandStrings.SdkVersionOptionNotSupported);
Commands\Workload\Repair\WorkloadRepairCommand.cs (1)
44
throw new
GracefulException
(CliCommandStrings.SdkVersionOptionNotSupported);
Commands\Workload\Search\WorkloadSearchCommand.cs (1)
29
throw new
GracefulException
(CliCommandStrings.SdkVersionOptionNotSupported);
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (1)
42
throw new
GracefulException
(CliCommandStrings.SdkVersionOptionNotSupported);
Commands\Workload\Uninstall\WorkloadUninstallCommand.cs (1)
39
throw new
GracefulException
(CliCommandStrings.SdkVersionOptionNotSupported);
Commands\Workload\WorkloadCommandBase.cs (1)
156
throw new
GracefulException
(CliCommandStrings.SkipSignCheckInvalidOption);
CommonArguments.cs (2)
48
throw new
GracefulException
(CliStrings.PackageIdentityArgumentIdOrVersionIsNull);
58
throw new
GracefulException
(string.Format(CliStrings.InvalidVersion, versionString));
CommonOptions.cs (4)
401
throw new
GracefulException
(CliStrings.SelfContainAndNoSelfContainedConflict);
409
throw new
GracefulException
(CliStrings.CannotSpecifyBothRuntimeAndArchOptions);
425
throw new
GracefulException
(CliStrings.CannotSpecifyBothRuntimeAndOsOptions);
461
throw new
GracefulException
(CliStrings.CannotResolveRuntimeIdentifier);
Extensions\ParseResultExtensions.cs (1)
187
throw new
GracefulException
(CliStrings.OnlyOneProjectAllowed);
MsbuildProject.cs (1)
230
throw new
GracefulException
(string.Format(
NugetPackageDownloader\ToolPackageException.cs (1)
16
public NuGetPackageInstallerException(string message) :
base
(message)
NugetSearch\NugetSearchApiParameter.cs (1)
59
throw new
GracefulException
(
ShellShim\ShellShimTemplateFinder.cs (1)
50
throw new
GracefulException
(string.Format(CliStrings.InvalidRuntimeIdentifier, rid, string.Join(" ", validRids)));
SlnFileFactory.cs (1)
25
throw new
GracefulException
(CliStrings.CouldNotFindSolutionOrDirectory);
ToolPackage\ToolPackageException.cs (1)
16
public ToolPackageException(string message) :
base
(message)
Microsoft.DotNet.Cli.Utils (6)
CommandAvailableAsDotNetToolException.cs (1)
8
public CommandAvailableAsDotNetToolException(string commandName) :
base
(GetMessage(commandName))
CommandUnknownException.cs (2)
10
public CommandUnknownException(string commandName) :
base
(
18
public CommandUnknownException(string commandName, Exception innerException) :
base
(
Extensions\LockFileFormatExtensions.cs (1)
19
throw new
GracefulException
(string.Join(
GracefulException.cs (1)
33
public GracefulException(string format, params string[] args) :
this
(string.Format(format, args))
PathUtility.cs (1)
382
throw new
GracefulException
(
Microsoft.DotNet.PackageInstall.Tests (2)
ToolPackageDownloaderTests.cs (2)
366
static void FailedStepAfterSuccessRestore() => throw new
GracefulException
("simulated error");
452
static void FailedStepAfterSuccessDownload() => throw new
GracefulException
("simulated error");