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