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