112 references to GracefulException
dotnet (77)
CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (2)
88
throw new
GracefulException
(string.Format(CliStrings.NeedRunToolRestore,
97
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)
324
throw new
GracefulException
(CliStrings.DepsJsonGeneratorProjectNotSet);
434
throw new
GracefulException
(string.Format(CliStrings.UnableToGenerateDepsJson, toolDepsJsonGeneratorProject));
CommandFactory\CommandResolution\ToolPathCalculator.cs (1)
33
throw new
GracefulException
(string.Format(
Commands\Package\Add\PackageAddCommand.cs (1)
130
throw new
GracefulException
(string.Format(CliCommandStrings.CmdDGFileException, projectFilePath));
Commands\Package\Remove\PackageRemoveCommand.cs (1)
24
throw new
GracefulException
(CliCommandStrings.PackageRemoveSpecifyExactlyOnePackageReference);
Commands\Reference\Remove\ReferenceRemoveCommand.cs (1)
33
throw new
GracefulException
(CliStrings.SpecifyAtLeastOneReferenceToRemove);
Commands\Run\RunCommand.cs (4)
210
throw new
GracefulException
(CliCommandStrings.RunCommandDeployFailed);
468
throw new
GracefulException
(CliCommandStrings.RunCommandException);
687
throw new
GracefulException
(
945
throw new
GracefulException
(CliStrings.OnlyOneProjectAllowed);
Commands\Sdk\Check\ProductCollectionProvider.cs (1)
23
throw new
GracefulException
(string.Format(CliCommandStrings.ReleasesLibraryFailed, e.Message));
Commands\Solution\Add\SolutionAddCommand.cs (3)
58
throw new
GracefulException
(CliStrings.SpecifyAtLeastOneProjectToAdd);
207
throw new
GracefulException
(string.Format(CliStrings.SolutionFolderAlreadyContainsProjectWithFilename, rootFolder.Name, projectFileName));
288
throw new
GracefulException
(CliCommandStrings.SolutionFilterDoesNotSupportFolderOptions);
Commands\Solution\Migrate\SolutionMigrateCommand.cs (1)
31
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\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (15)
57
throw new
GracefulException
(CliCommandStrings.CmdListDevicesAndListTestsMutuallyExclusive);
62
throw new
GracefulException
(CliCommandStrings.CmdListDevicesAndAffectedTestsMutuallyExclusive);
70
throw new
GracefulException
(CliCommandStrings.CmdDeviceOptionsRequireProject);
77
throw new
GracefulException
(CliCommandStrings.CmdDeviceOptionsNotSupportedForFileBasedApps);
328
throw new
GracefulException
(
336
throw new
GracefulException
(CliCommandStrings.CmdAffectedTestsOptionsMutuallyExclusive);
341
throw new
GracefulException
(CliCommandStrings.CmdCollectTestMapCannotRunModulesInParallel);
347
throw new
GracefulException
(CliCommandStrings.CmdCollectTestMapCannotRequireMinimumTests);
390
throw new
GracefulException
(CliCommandStrings.CmdAffectedTestsResponseFilesMustBeConsistent);
403
throw new
GracefulException
(CliCommandStrings.CmdAffectedTestsResponseFilesMustBeConsistent);
773
throw new
GracefulException
(CliCommandStrings.CmdTestNoTestProjectsFound);
778
throw new
GracefulException
(CliCommandStrings.TestCommandUseProject);
814
throw new
GracefulException
(
845
throw new
GracefulException
(CliCommandStrings.CmdTestNoTestProjectsFound);
852
throw new
GracefulException
(CliCommandStrings.TestCommandUseProject);
Commands\Test\MTP\SolutionAndProjectUtility.cs (3)
581
throw new
GracefulException
(
624
throw new
GracefulException
(
700
throw new
GracefulException
(CliCommandStrings.RunCommandDeployFailed);
Commands\Test\MTP\TestCommandOptions.cs (6)
103
throw new
GracefulException
(CliCommandStrings.CmdMultipleBuildPathOptionsErrorDescription);
169
throw new
GracefulException
(CliCommandStrings.TestCommandUseSolution);
183
throw new
GracefulException
(CliCommandStrings.TestCommandUseProject);
196
throw new
GracefulException
(CliCommandStrings.TestCommandUseProject);
211
throw new
GracefulException
(CliCommandStrings.TestCommandUseTestModules);
224
throw new
GracefulException
(CliCommandStrings.TestCommandUseDirectoryWithSwitch);
Commands\Test\MTP\ValidationUtility.cs (2)
33
throw new
GracefulException
(CliCommandStrings.CmdMultipleBuildPathOptionsErrorDescription);
52
throw new
GracefulException
(CliCommandStrings.CmdOptionCannotBeUsedWithTestModulesDescription);
Commands\Tool\Install\ToolInstallCommand.cs (1)
49
throw new
GracefulException
(
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
178
throw new
GracefulException
(string.Format(CliCommandStrings.ToolInstallNuGetConfigurationFileDoesNotExist, Path.GetFullPath(_configFilePath)));
305
throw new
GracefulException
(
Commands\Tool\Install\ToolInstallLocalInstaller.cs (1)
30
throw new
GracefulException
(
Commands\Tool\Install\VersionRangeUtilities.cs (3)
19
throw new
GracefulException
(CliStrings.PackageIdentityArgumentVersionOptionConflict);
34
throw new
GracefulException
(
51
throw new
GracefulException
(
Commands\Tool\List\ToolListGlobalOrToolPathCommand.cs (1)
42
throw new
GracefulException
(
Commands\Tool\Search\ToolSearchCommand.cs (1)
59
throw new
GracefulException
(
Commands\Tool\Store\StoreCommand.cs (1)
37
throw new
GracefulException
(CliCommandStrings.SpecifyManifests);
Commands\Tool\ToolCommandSpecCreator.cs (1)
27
throw new
GracefulException
(string.Format(CliStrings.ToolSettingsUnsupportedRunner, toolName, toolRunner));
Commands\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommand.cs (1)
40
throw new
GracefulException
(
Commands\Tool\Update\ToolUpdateCommand.cs (3)
77
throw new
GracefulException
(message);
86
throw new
GracefulException
(CliStrings.PackageIdentityArgumentVersionOptionConflict);
107
throw new
GracefulException
(
Commands\Workload\Clean\WorkloadCleanCommand.cs (1)
36
throw new
GracefulException
(CliCommandStrings.SdkVersionOptionNotSupported);
Commands\Workload\InstallingWorkloadCommand.cs (1)
118
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)
44
throw new
GracefulException
(CliCommandStrings.SdkVersionOptionNotSupported);
Commands\Workload\Uninstall\WorkloadUninstallCommand.cs (1)
39
throw new
GracefulException
(CliCommandStrings.SdkVersionOptionNotSupported);
MsbuildProject.cs (2)
28
: throw new
GracefulException
(error);
219
throw new
GracefulException
(string.Format(
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
359
throw new
GracefulException
(string.Format(CliStrings.ResolvedPathEscapesTargetDirectory, fullPath, targetFolder.Value));
NugetPackageDownloader\ToolPackageException.cs (1)
16
public NuGetPackageInstallerException(string message) :
base
(message)
ShellShim\ShellShimTemplateFinder.cs (1)
50
throw new
GracefulException
(string.Format(CliStrings.InvalidRuntimeIdentifier, rid, string.Join(" ", validRids)));
SlnFileFactory.cs (1)
26
throw new
GracefulException
(CliStrings.CouldNotFindSolutionOrDirectory);
ToolPackage\ToolPackageException.cs (1)
16
public ToolPackageException(string message) :
base
(message)
dotnet-aot (20)
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (2)
88
throw new
GracefulException
(string.Format(CliStrings.NeedRunToolRestore,
97
throw new
GracefulException
(string.Format(CliStrings.NeedRunToolRestore,
src\sdk\src\Cli\dotnet\Commands\Sdk\Check\ProductCollectionProvider.cs (1)
23
throw new
GracefulException
(string.Format(CliCommandStrings.ReleasesLibraryFailed, e.Message));
src\sdk\src\Cli\dotnet\Commands\Solution\Migrate\SolutionMigrateCommand.cs (1)
31
throw new
GracefulException
(CliCommandStrings.CannotMigrateSlnx);
src\sdk\src\Cli\dotnet\Commands\Solution\Remove\SolutionRemoveCommand.cs (1)
33
throw new
GracefulException
(CliStrings.SpecifyAtLeastOneProjectToRemove);
src\sdk\src\Cli\dotnet\Commands\Solution\SolutionArgumentValidator.cs (2)
24
throw new
GracefulException
(message);
32
throw new
GracefulException
(CliCommandStrings.SolutionFolderAndInRootMutuallyExclusive);
src\sdk\src\Cli\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (6)
328
throw new
GracefulException
(
336
throw new
GracefulException
(CliCommandStrings.CmdAffectedTestsOptionsMutuallyExclusive);
341
throw new
GracefulException
(CliCommandStrings.CmdCollectTestMapCannotRunModulesInParallel);
347
throw new
GracefulException
(CliCommandStrings.CmdCollectTestMapCannotRequireMinimumTests);
390
throw new
GracefulException
(CliCommandStrings.CmdAffectedTestsResponseFilesMustBeConsistent);
403
throw new
GracefulException
(CliCommandStrings.CmdAffectedTestsResponseFilesMustBeConsistent);
src\sdk\src\Cli\dotnet\Commands\Tool\Search\ToolSearchCommand.cs (1)
59
throw new
GracefulException
(
src\sdk\src\Cli\dotnet\Commands\Tool\ToolCommandSpecCreator.cs (1)
27
throw new
GracefulException
(string.Format(CliStrings.ToolSettingsUnsupportedRunner, toolName, toolRunner));
src\sdk\src\Cli\dotnet\MsbuildProject.cs (2)
28
: throw new
GracefulException
(error);
219
throw new
GracefulException
(string.Format(
src\sdk\src\Cli\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (1)
359
throw new
GracefulException
(string.Format(CliStrings.ResolvedPathEscapesTargetDirectory, fullPath, targetFolder.Value));
src\sdk\src\Cli\dotnet\NugetPackageDownloader\ToolPackageException.cs (1)
16
public NuGetPackageInstallerException(string message) :
base
(message)
src\sdk\src\Cli\dotnet\SlnFileFactory.cs (1)
26
throw new
GracefulException
(CliStrings.CouldNotFindSolutionOrDirectory);
Microsoft.DotNet.Cli.CoreUtils (1)
GracefulException.cs (1)
31
public GracefulException(string format, params string[] args) :
this
(string.Format(format, args))
Microsoft.DotNet.Cli.Definitions (9)
Commands\Package\PackageListCommandDefinition.cs (1)
140
throw new Utils.
GracefulException
(CommandDefinitionStrings.OptionsCannotBeCombined);
Commands\Tool\ToolLocationOptions.cs (2)
49
throw new
GracefulException
(
61
throw new
GracefulException
(
Common\CommonArguments.cs (2)
46
throw new
GracefulException
(CommandDefinitionStrings.PackageIdentityArgumentIdOrVersionIsNull);
56
throw new
GracefulException
(string.Format(CommandDefinitionStrings.InvalidVersion, versionString));
Common\CommonOptions.cs (1)
374
throw new
GracefulException
(CommandDefinitionStrings.SelfContainAndNoSelfContainedConflict);
Common\TargetPlatformOptions.cs (3)
69
throw new
GracefulException
(CommandDefinitionStrings.CannotSpecifyBothRuntimeAndArchOptions);
85
throw new
GracefulException
(CommandDefinitionStrings.CannotSpecifyBothRuntimeAndOsOptions);
123
throw new
GracefulException
(CommandDefinitionStrings.CannotResolveRuntimeIdentifier);
Microsoft.DotNet.Cli.Utils (5)
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(
PathUtility.cs (1)
356
throw new
GracefulException
(