73 references to GracefulException
dotnet (58)
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)
25throw new GracefulException(CliStrings.SpecifyAtLeastOneReferenceToRemove);
Commands\Run\RunCommand.cs (4)
211throw new GracefulException(CliCommandStrings.RunCommandDeployFailed); 512throw new GracefulException(CliCommandStrings.RunCommandException); 712throw new GracefulException( 966throw 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)
56throw new GracefulException(CliStrings.SpecifyAtLeastOneProjectToAdd); 200throw new GracefulException(string.Format(CliStrings.SolutionFolderAlreadyContainsProjectWithFilename, rootFolder.Name, projectFileName)); 281throw 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\MSBuildUtility.cs (5)
135throw new GracefulException(CliCommandStrings.CmdMultipleBuildPathOptionsErrorDescription); 182throw new GracefulException(CliCommandStrings.TestCommandUseSolution); 197throw new GracefulException(CliCommandStrings.TestCommandUseProject); 212throw new GracefulException(CliCommandStrings.TestCommandUseTestModules); 225throw new GracefulException(CliCommandStrings.TestCommandUseDirectoryWithSwitch);
Commands\Test\MTP\SolutionAndProjectUtility.cs (1)
324throw new GracefulException(
Commands\Test\MTP\ValidationUtility.cs (2)
32throw new GracefulException(CliCommandStrings.CmdMultipleBuildPathOptionsErrorDescription); 50throw 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)
85: throw new GracefulException(error); 207throw new GracefulException(string.Format(
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)
25throw new GracefulException(CliStrings.CouldNotFindSolutionOrDirectory);
ToolPackage\ToolPackageException.cs (1)
16public ToolPackageException(string message) : base(message)
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)
367throw 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(