#[non_exhaustive]pub enum ContinueDeploymentError {
DeploymentAlreadyCompletedException(DeploymentAlreadyCompletedException),
DeploymentDoesNotExistException(DeploymentDoesNotExistException),
DeploymentIdRequiredException(DeploymentIdRequiredException),
DeploymentIsNotInReadyStateException(DeploymentIsNotInReadyStateException),
InvalidDeploymentIdException(InvalidDeploymentIdException),
InvalidDeploymentStatusException(InvalidDeploymentStatusException),
InvalidDeploymentWaitTypeException(InvalidDeploymentWaitTypeException),
UnsupportedActionForDeploymentTypeException(UnsupportedActionForDeploymentTypeException),
Unhandled(Unhandled),
}
Expand description
Error type for the ContinueDeploymentError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DeploymentAlreadyCompletedException(DeploymentAlreadyCompletedException)
The deployment is already complete.
DeploymentDoesNotExistException(DeploymentDoesNotExistException)
The deployment with the user or Amazon Web Services account does not exist.
DeploymentIdRequiredException(DeploymentIdRequiredException)
At least one deployment ID must be specified.
DeploymentIsNotInReadyStateException(DeploymentIsNotInReadyStateException)
The deployment does not have a status of Ready and can't continue yet.
InvalidDeploymentIdException(InvalidDeploymentIdException)
At least one of the deployment IDs was specified in an invalid format.
InvalidDeploymentStatusException(InvalidDeploymentStatusException)
The specified deployment status doesn't exist or cannot be determined.
InvalidDeploymentWaitTypeException(InvalidDeploymentWaitTypeException)
The wait type is invalid.
UnsupportedActionForDeploymentTypeException(UnsupportedActionForDeploymentTypeException)
A call was submitted that is not supported for the specified deployment type.
Unhandled(Unhandled)
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl ContinueDeploymentError
impl ContinueDeploymentError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the ContinueDeploymentError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ContinueDeploymentError::Unhandled
variant from an ErrorMetadata
.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_deployment_already_completed_exception(&self) -> bool
pub fn is_deployment_already_completed_exception(&self) -> bool
Returns true
if the error kind is ContinueDeploymentError::DeploymentAlreadyCompletedException
.
sourcepub fn is_deployment_does_not_exist_exception(&self) -> bool
pub fn is_deployment_does_not_exist_exception(&self) -> bool
Returns true
if the error kind is ContinueDeploymentError::DeploymentDoesNotExistException
.
sourcepub fn is_deployment_id_required_exception(&self) -> bool
pub fn is_deployment_id_required_exception(&self) -> bool
Returns true
if the error kind is ContinueDeploymentError::DeploymentIdRequiredException
.
sourcepub fn is_deployment_is_not_in_ready_state_exception(&self) -> bool
pub fn is_deployment_is_not_in_ready_state_exception(&self) -> bool
Returns true
if the error kind is ContinueDeploymentError::DeploymentIsNotInReadyStateException
.
sourcepub fn is_invalid_deployment_id_exception(&self) -> bool
pub fn is_invalid_deployment_id_exception(&self) -> bool
Returns true
if the error kind is ContinueDeploymentError::InvalidDeploymentIdException
.
sourcepub fn is_invalid_deployment_status_exception(&self) -> bool
pub fn is_invalid_deployment_status_exception(&self) -> bool
Returns true
if the error kind is ContinueDeploymentError::InvalidDeploymentStatusException
.
sourcepub fn is_invalid_deployment_wait_type_exception(&self) -> bool
pub fn is_invalid_deployment_wait_type_exception(&self) -> bool
Returns true
if the error kind is ContinueDeploymentError::InvalidDeploymentWaitTypeException
.
sourcepub fn is_unsupported_action_for_deployment_type_exception(&self) -> bool
pub fn is_unsupported_action_for_deployment_type_exception(&self) -> bool
Returns true
if the error kind is ContinueDeploymentError::UnsupportedActionForDeploymentTypeException
.
Trait Implementations§
source§impl CreateUnhandledError for ContinueDeploymentError
impl CreateUnhandledError for ContinueDeploymentError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source
and error metadata.source§impl Debug for ContinueDeploymentError
impl Debug for ContinueDeploymentError
source§impl Display for ContinueDeploymentError
impl Display for ContinueDeploymentError
source§impl Error for ContinueDeploymentError
impl Error for ContinueDeploymentError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<ContinueDeploymentError> for Error
impl From<ContinueDeploymentError> for Error
source§fn from(err: ContinueDeploymentError) -> Self
fn from(err: ContinueDeploymentError) -> Self
source§impl ProvideErrorMetadata for ContinueDeploymentError
impl ProvideErrorMetadata for ContinueDeploymentError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ContinueDeploymentError
impl RequestId for ContinueDeploymentError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.