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