Enum aws_sdk_elasticloadbalancingv2::operation::delete_load_balancer::DeleteLoadBalancerError
source · #[non_exhaustive]
pub enum DeleteLoadBalancerError {
LoadBalancerNotFoundException(LoadBalancerNotFoundException),
OperationNotPermittedException(OperationNotPermittedException),
ResourceInUseException(ResourceInUseException),
Unhandled(Unhandled),
}
Expand description
Error type for the DeleteLoadBalancerError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
LoadBalancerNotFoundException(LoadBalancerNotFoundException)
The specified load balancer does not exist.
OperationNotPermittedException(OperationNotPermittedException)
This operation is not allowed.
ResourceInUseException(ResourceInUseException)
A specified resource is in use.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl DeleteLoadBalancerError
impl DeleteLoadBalancerError
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 DeleteLoadBalancerError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the DeleteLoadBalancerError::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_load_balancer_not_found_exception(&self) -> bool
pub fn is_load_balancer_not_found_exception(&self) -> bool
Returns true
if the error kind is DeleteLoadBalancerError::LoadBalancerNotFoundException
.
sourcepub fn is_operation_not_permitted_exception(&self) -> bool
pub fn is_operation_not_permitted_exception(&self) -> bool
Returns true
if the error kind is DeleteLoadBalancerError::OperationNotPermittedException
.
sourcepub fn is_resource_in_use_exception(&self) -> bool
pub fn is_resource_in_use_exception(&self) -> bool
Returns true
if the error kind is DeleteLoadBalancerError::ResourceInUseException
.
Trait Implementations§
source§impl CreateUnhandledError for DeleteLoadBalancerError
impl CreateUnhandledError for DeleteLoadBalancerError
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 DeleteLoadBalancerError
impl Debug for DeleteLoadBalancerError
source§impl Display for DeleteLoadBalancerError
impl Display for DeleteLoadBalancerError
source§impl Error for DeleteLoadBalancerError
impl Error for DeleteLoadBalancerError
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<DeleteLoadBalancerError> for Error
impl From<DeleteLoadBalancerError> for Error
source§fn from(err: DeleteLoadBalancerError) -> Self
fn from(err: DeleteLoadBalancerError) -> Self
source§impl ProvideErrorMetadata for DeleteLoadBalancerError
impl ProvideErrorMetadata for DeleteLoadBalancerError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for DeleteLoadBalancerError
impl RequestId for DeleteLoadBalancerError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.