41 instantiations of CommandLineException
vstest.console (41)
Processors\CLIRunSettingsArgumentProcessor.cs (3)
113throw new CommandLineException(CommandLineResources.MalformedRunSettingsKey, exception); 117throw new CommandLineException(exception.Message, exception); 229throw new CommandLineException(exceptionMessage);
Processors\CollectArgumentProcessor.cs (3)
102throw new CommandLineException(exceptionMessage); 111throw new CommandLineException(exceptionMessage); 181throw new CommandLineException(exceptionMessage);
Processors\DisableAutoFakesArgumentProcessor.cs (1)
70throw new CommandLineException(CommandLineResources.DisableAutoFakesUsage);
Processors\EnableDiagArgumentProcessor.cs (1)
124throw new CommandLineException(exceptionMessage);
Processors\EnableLoggerArgumentProcessor.cs (2)
122throw new CommandLineException(exceptionMessage); 132throw new CommandLineException(exceptionMessage);
Processors\FrameworkArgumentProcessor.cs (2)
111throw new CommandLineException(CommandLineResources.FrameworkVersionRequired); 115_commandLineOptions.TargetFrameworkVersion = validFramework ?? throw new CommandLineException(
Processors\InIsolationArgumentProcessor.cs (1)
99throw new CommandLineException(
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (2)
179throw new CommandLineException(CommandLineResources.MissingTestSourceFile); 196throw new CommandLineException("Target Path should be specified for listing FQDN tests!");
Processors\ListTestsArgumentProcessor.cs (1)
183throw new CommandLineException(CommandLineResources.MissingTestSourceFile);
Processors\ListTestsTargetPathArgumentProcessor.cs (1)
87throw new CommandLineException("ListTestsTargetPath is required with ListFullyQualifiedTests!");
Processors\ParallelArgumentProcessor.cs (1)
106throw new CommandLineException(
Processors\ParentProcessIdArgumentProcessor.cs (1)
95throw new CommandLineException(CommandLineResources.InvalidParentProcessIdArgument);
Processors\PlatformArgumentProcessor.cs (2)
118throw new CommandLineException(CommandLineResources.PlatformTypeRequired); 143throw new CommandLineException(
Processors\PortArgumentProcessor.cs (2)
160throw new CommandLineException(CommandLineResources.InvalidPortArgument); 182throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.DesignModeClientTimeoutError, _port), ex);
Processors\ResultsDirectoryArgumentProcessor.cs (2)
115throw new CommandLineException(CommandLineResources.ResultsDirectoryValueRequired); 129throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.InvalidResultsDirectoryPathCommand, argument, ex.Message));
Processors\RunSettingsArgumentProcessor.cs (2)
98throw new CommandLineException(CommandLineResources.RunSettingsRequired); 103throw new CommandLineException(
Processors\RunSpecificTestsArgumentProcessor.cs (2)
177throw new CommandLineException(CommandLineResources.SpecificTestsRequired); 197throw new CommandLineException(CommandLineResources.MissingTestSourceFile);
Processors\RunTestsArgumentProcessor.cs (1)
150throw new CommandLineException(CommandLineResources.MissingTestSourceFile);
Processors\TestAdapterLoadingStrategyArgumentProcessor.cs (4)
133throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterLoadingStrategyValueInvalidRecursive, $"{nameof(TestAdapterLoadingStrategy.Explicit)}, {nameof(TestAdapterLoadingStrategy.NextToSource)}")); 168throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterLoadingStrategyValueInvalid, value)); 185throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestAdapterPathValueRequiredWhenStrategyXIsUsed, nameof(TestAdapterLoadingStrategy.Explicit))); 221throw new CommandLineException(
Processors\TestAdapterPathArgumentProcessor.cs (1)
136throw new CommandLineException(
Processors\TestCaseFilterArgumentProcessor.cs (1)
101throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.TestCaseFilterValueRequired));
Processors\TestSessionCorrelationIdProcessor.cs (1)
83throw new CommandLineException(CommandLineResources.InvalidTestSessionCorrelationId);
Processors\UseVsixExtensionsArgumentProcessor.cs (2)
95throw new CommandLineException(string.Format(CultureInfo.CurrentCulture, CommandLineResources.UseVsixExtensionsValueRequired)); 100throw new CommandLineException(
Processors\Utilities\ArgumentProcessorUtilities.cs (2)
28throw new CommandLineException(exceptionMessage); 55throw new CommandLineException(exceptionMessage);
2 references to CommandLineException
vstest.console (2)
CommandLine\Executor.cs (2)
315if (ex is CommandLineException or TestPlatformException or SettingsException) 423if (ex is CommandLineException or TestPlatformException or SettingsException or InvalidOperationException)