6 types derived from GracefulException
dotnet-aot (4)
parent\dotnet\NugetPackageDownloader\ToolPackageException.cs (1)
10
internal class NuGetPackageInstallerException :
GracefulException
parent\dotnet\NugetSearch\NugetSearchApiRequestException.cs (1)
10
internal class NugetSearchApiRequestException(string message) :
GracefulException
([message], null, false)
parent\dotnet\ToolManifest\ToolManifestCannotBeFoundException.cs (1)
10
internal class ToolManifestCannotBeFoundException :
GracefulException
parent\dotnet\ToolManifest\ToolManifestException.cs (1)
10
internal class ToolManifestException(string message) :
GracefulException
([message], null, false)
Microsoft.DotNet.Cli.Utils (2)
CommandAvailableAsDotNetToolException.cs (1)
6
public class CommandAvailableAsDotNetToolException :
GracefulException
CommandUnknownException.cs (1)
6
public class CommandUnknownException :
GracefulException
52 instantiations of GracefulException
dotnet-aot (41)
parent\dotnet\CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (2)
88
throw new
GracefulException
(string.Format(CliStrings.NeedRunToolRestore,
97
throw new
GracefulException
(string.Format(CliStrings.NeedRunToolRestore,
parent\dotnet\Commands\Run\AotRunCommand.cs (2)
383
throw new
GracefulException
(CliCommandStrings.RunCommandExceptionNoProjects, currentDirectory, "--project");
414
throw new
GracefulException
(CliCommandStrings.RunCommandExceptionNoProjects, currentDirectory, "--project");
parent\dotnet\Commands\Run\CommonRunHelpers.cs (1)
36
? throw new
GracefulException
(CliCommandStrings.RunCommandExceptionMultipleProjects, directory)
parent\dotnet\Commands\Sdk\Check\ProductCollectionProvider.cs (1)
23
throw new
GracefulException
(string.Format(CliCommandStrings.ReleasesLibraryFailed, e.Message));
parent\dotnet\Commands\Sdk\Check\SdkCheckCommand.cs (2)
72
throw new
GracefulException
([CliCommandStrings.RuntimePropertyNotFound], [], isUserError: false);
75
throw new
GracefulException
([CliCommandStrings.HostFxrCouldNotBeLoaded], [hostFxrNotFoundException.Message], isUserError: false);
parent\dotnet\Commands\Solution\List\SolutionListCommand.cs (1)
34
throw new
GracefulException
(CliStrings.InvalidSolutionFormatString, solutionFileFullPath, ex.Message);
parent\dotnet\Commands\Solution\Migrate\SolutionMigrateCommand.cs (2)
31
throw new
GracefulException
(CliCommandStrings.CannotMigrateSlnx);
41
throw new
GracefulException
(ex.Message, ex);
parent\dotnet\Commands\Solution\Remove\SolutionRemoveCommand.cs (3)
33
throw new
GracefulException
(CliStrings.SpecifyAtLeastOneProjectToRemove);
61
throw new
GracefulException
(CliStrings.InvalidSolutionFormatString, solutionFileFullPath, ex.Message);
63
throw new
GracefulException
(ex.Message, ex);
parent\dotnet\Commands\Solution\SolutionArgumentValidator.cs (3)
24
throw new
GracefulException
(message);
32
throw new
GracefulException
(CliCommandStrings.SolutionFolderAndInRootMutuallyExclusive);
54
throw new
GracefulException
(
parent\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (6)
344
throw new
GracefulException
(
352
throw new
GracefulException
(CliCommandStrings.CmdAffectedTestsOptionsMutuallyExclusive);
357
throw new
GracefulException
(CliCommandStrings.CmdCollectTestMapCannotRunModulesInParallel);
363
throw new
GracefulException
(CliCommandStrings.CmdCollectTestMapCannotRequireMinimumTests);
406
throw new
GracefulException
(CliCommandStrings.CmdAffectedTestsResponseFilesMustBeConsistent);
419
throw new
GracefulException
(CliCommandStrings.CmdAffectedTestsResponseFilesMustBeConsistent);
parent\dotnet\Commands\Tool\Common\ToolManifestFinderExtensions.cs (1)
32
throw new
GracefulException
([e.Message, CliCommandStrings.ToolCommonNoManifestGuide], verboseMessages: [e.VerboseMessage], isUserError: false);
parent\dotnet\Commands\Tool\Run\ToolRunCommand.cs (1)
46
throw new
GracefulException
([string.Format(CliCommandStrings.CannotFindCommandName, toolCommandName)], isUserError: false);
parent\dotnet\Commands\Tool\Search\ToolSearchCommand.cs (1)
59
throw new
GracefulException
(
parent\dotnet\Commands\Tool\ToolCommandSpecCreator.cs (1)
27
throw new
GracefulException
(string.Format(CliStrings.ToolSettingsUnsupportedRunner, toolName, toolRunner));
parent\dotnet\Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
48
throw new
GracefulException
([string.Format(CliCommandStrings.NoManifestFileContainPackageId, _packageId)], isUserError: false);
parent\dotnet\MsbuildProject.cs (5)
28
: throw new
GracefulException
(error);
69
throw new
GracefulException
(CliStrings.ProjectDoesNotExist, projectPath);
75
throw new
GracefulException
(CliStrings.ProjectIsInvalid, projectPath);
88
throw new
GracefulException
(CliStrings.FoundInvalidProject, projectFilePath);
219
throw new
GracefulException
(string.Format(
parent\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (1)
359
throw new
GracefulException
(string.Format(CliStrings.ResolvedPathEscapesTargetDirectory, fullPath, targetFolder.Value));
parent\dotnet\SlnFileFactory.cs (7)
26
throw new
GracefulException
(CliStrings.CouldNotFindSolutionOrDirectory);
37
throw new
GracefulException
(
43
throw new
GracefulException
(
49
throw new
GracefulException
(
80
throw new
GracefulException
(
111
throw new
GracefulException
(
134
.Select(path => originalSolution.FindProject(path) ?? throw new
GracefulException
(
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 (2)
Extensions\LockFileFormatExtensions.cs (1)
19
throw new
GracefulException
(string.Join(
PathUtility.cs (1)
356
throw new
GracefulException
(
2 references to GracefulException
dotnet-aot (2)
parent\dotnet\Commands\Solution\Remove\SolutionRemoveCommand.cs (1)
57
catch (Exception ex) when (ex is not
GracefulException
)
parent\dotnet\Parser.cs (1)
374
if (exception is
GracefulException
)