#[non_exhaustive]pub enum UpdateHostError {
ConflictException(ConflictException),
ResourceNotFoundException(ResourceNotFoundException),
ResourceUnavailableException(ResourceUnavailableException),
UnsupportedOperationException(UnsupportedOperationException),
Unhandled(Unhandled),
}
Expand description
Error type for the UpdateHostError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConflictException(ConflictException)
Two conflicting operations have been made on the same resource.
ResourceNotFoundException(ResourceNotFoundException)
Resource not found. Verify the connection resource ARN and try again.
Resource not found. Verify the ARN for the host resource and try again.
UnsupportedOperationException(UnsupportedOperationException)
The operation is not supported. Check the connection status and try again.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl UpdateHostError
impl UpdateHostError
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 UpdateHostError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the UpdateHostError::Unhandled
variant from a aws_smithy_types::error::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_conflict_exception(&self) -> bool
pub fn is_conflict_exception(&self) -> bool
Returns true
if the error kind is UpdateHostError::ConflictException
.
sourcepub fn is_resource_not_found_exception(&self) -> bool
pub fn is_resource_not_found_exception(&self) -> bool
Returns true
if the error kind is UpdateHostError::ResourceNotFoundException
.
Returns true
if the error kind is UpdateHostError::ResourceUnavailableException
.
sourcepub fn is_unsupported_operation_exception(&self) -> bool
pub fn is_unsupported_operation_exception(&self) -> bool
Returns true
if the error kind is UpdateHostError::UnsupportedOperationException
.
Trait Implementations§
source§impl CreateUnhandledError for UpdateHostError
impl CreateUnhandledError for UpdateHostError
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 UpdateHostError
impl Debug for UpdateHostError
source§impl Display for UpdateHostError
impl Display for UpdateHostError
source§impl Error for UpdateHostError
impl Error for UpdateHostError
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<UpdateHostError> for Error
impl From<UpdateHostError> for Error
source§fn from(err: UpdateHostError) -> Self
fn from(err: UpdateHostError) -> Self
source§impl ProvideErrorKind for UpdateHostError
impl ProvideErrorKind for UpdateHostError
source§impl ProvideErrorMetadata for UpdateHostError
impl ProvideErrorMetadata for UpdateHostError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for UpdateHostError
impl RequestId for UpdateHostError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.