Commands\Workload\Install\WorkloadInstallCommand.cs (7)
66throw new GracefulException(CliCommandStrings.CannotSpecifyVersionAndWorkloadIdsByComponent, isUserError: true);
118throw new GracefulException(string.Format(exceptionMessage, workloadId), isUserError: false);
163throw new GracefulException(string.Format(CliCommandStrings.WorkloadInstallWorkloadCacheDownloadFailed, e.Message), e, isUserError: false);
168throw new GracefulException(string.Format(CliCommandStrings.CannotCombineSkipManifestAndRollback,
175throw new GracefulException(string.Format(CliCommandStrings.CannotCombineSkipManifestAndVersion,
182throw new GracefulException(string.Format(CliCommandStrings.CannotUseSkipManifestWithGlobalJsonWorkloadVersion,
212throw new GracefulException(string.Format(CliCommandStrings.WorkloadInstallationFailed, e.Message), e, isUserError: false);
Commands\Workload\InstallingWorkloadCommand.cs (9)
65throw new GracefulException(CliCommandStrings.NoWorkloadHistoryRecords, isUserError: true);
72throw new GracefulException(CliCommandStrings.WorkloadHistoryRecordInvalidIdValue, isUserError: true);
141throw new GracefulException(string.Format(CliCommandStrings.CannotSpecifyVersionOnCommandLineAndInGlobalJson, _globalJsonPath), isUserError: true);
145throw new GracefulException(string.Format(CliCommandStrings.CannotCombineOptions,
151throw new GracefulException(string.Format(CliCommandStrings.CannotCombineOptions,
157throw new GracefulException(CliCommandStrings.SpecifiedWorkloadVersionAndSpecificNonWorkloadVersion, isUserError: true);
161throw new GracefulException(CliCommandStrings.SpecifiedNoWorkloadVersionAndSpecificWorkloadVersion, isUserError: true);
170throw new GracefulException(string.Format(CliCommandStrings.WorkloadSetVersionInPackageVersionFormat, version, suggestedVersion, string.Empty), isUserError: true);
176throw new GracefulException(string.Format(CliCommandStrings.WorkloadSetVersionInPackageVersionFormat, _workloadSetVersionFromGlobalJson, suggestedGlobalJsonVersion, string.Format(CliCommandStrings.WorkloadSetVersionSpecifiedInGlobalJson, _globalJsonPath)), isUserError: true);