// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\r // SPDX-License-Identifier: Apache-2.0 using System; using AWS.Deploy.Common; namespace AWS.Deploy.CLI.ServerMode { /// /// Throw if the selected recommendation is null. /// public class SelectedRecommendationIsNullException : Exception { public SelectedRecommendationIsNullException(string message, Exception? innerException = null) : base(message, innerException) { } } /// /// Throw if the selected recommendation is incompatible with the operation performed. /// public class SelectedRecommendationIsIncompatibleException : Exception { public SelectedRecommendationIsIncompatibleException(string message, Exception? innerException = null) : base(message, innerException) { } } /// /// Throw if the tool was not able to retrieve the AWS Credentials. /// public class FailedToRetrieveAWSCredentialsException : Exception { public FailedToRetrieveAWSCredentialsException(string message, Exception? innerException = null) : base(message, innerException) { } } /// /// Throw if encryption key info passed in through stdin is invalid. /// public class InvalidEncryptionKeyInfoException : Exception { public InvalidEncryptionKeyInfoException(string message, Exception? innerException = null) : base(message, innerException) { } } /// /// Throw if could not find deployment targets mapping. /// public class FailedToFindDeploymentTargetsMappingException : Exception { public FailedToFindDeploymentTargetsMappingException(string message, Exception? innerException = null) : base(message, innerException) { } } }