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