#[non_exhaustive]pub enum UpdateEndpointGroupError {
AccessDeniedException(AccessDeniedException),
EndpointGroupNotFoundException(EndpointGroupNotFoundException),
InternalServiceErrorException(InternalServiceErrorException),
InvalidArgumentException(InvalidArgumentException),
LimitExceededException(LimitExceededException),
Unhandled(Unhandled),
}
Expand description
Error type for the UpdateEndpointGroupError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You don't have access permission.
EndpointGroupNotFoundException(EndpointGroupNotFoundException)
The endpoint group that you specified doesn't exist.
InternalServiceErrorException(InternalServiceErrorException)
There was an internal error for Global Accelerator.
InvalidArgumentException(InvalidArgumentException)
An argument that you specified is invalid.
LimitExceededException(LimitExceededException)
Processing your request would cause you to exceed an Global Accelerator limit.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl UpdateEndpointGroupError
impl UpdateEndpointGroupError
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 UpdateEndpointGroupError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the UpdateEndpointGroupError::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_access_denied_exception(&self) -> bool
pub fn is_access_denied_exception(&self) -> bool
Returns true
if the error kind is UpdateEndpointGroupError::AccessDeniedException
.
sourcepub fn is_endpoint_group_not_found_exception(&self) -> bool
pub fn is_endpoint_group_not_found_exception(&self) -> bool
Returns true
if the error kind is UpdateEndpointGroupError::EndpointGroupNotFoundException
.
sourcepub fn is_internal_service_error_exception(&self) -> bool
pub fn is_internal_service_error_exception(&self) -> bool
Returns true
if the error kind is UpdateEndpointGroupError::InternalServiceErrorException
.
sourcepub fn is_invalid_argument_exception(&self) -> bool
pub fn is_invalid_argument_exception(&self) -> bool
Returns true
if the error kind is UpdateEndpointGroupError::InvalidArgumentException
.
sourcepub fn is_limit_exceeded_exception(&self) -> bool
pub fn is_limit_exceeded_exception(&self) -> bool
Returns true
if the error kind is UpdateEndpointGroupError::LimitExceededException
.
Trait Implementations§
source§impl CreateUnhandledError for UpdateEndpointGroupError
impl CreateUnhandledError for UpdateEndpointGroupError
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 UpdateEndpointGroupError
impl Debug for UpdateEndpointGroupError
source§impl Display for UpdateEndpointGroupError
impl Display for UpdateEndpointGroupError
source§impl Error for UpdateEndpointGroupError
impl Error for UpdateEndpointGroupError
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<UpdateEndpointGroupError> for Error
impl From<UpdateEndpointGroupError> for Error
source§fn from(err: UpdateEndpointGroupError) -> Self
fn from(err: UpdateEndpointGroupError) -> Self
source§impl ProvideErrorMetadata for UpdateEndpointGroupError
impl ProvideErrorMetadata for UpdateEndpointGroupError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for UpdateEndpointGroupError
impl RequestId for UpdateEndpointGroupError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.