#[non_exhaustive]pub enum ListLayersError {
    TooManyRequestsException(TooManyRequestsException),
    ServiceException(ServiceException),
    InvalidParameterValueException(InvalidParameterValueException),
    Unhandled(Unhandled),
}Expand description
Error type for the ListLayersError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TooManyRequestsException(TooManyRequestsException)
The request throughput limit was exceeded. For more information, see Lambda quotas.
ServiceException(ServiceException)
The Lambda service encountered an internal error.
InvalidParameterValueException(InvalidParameterValueException)
One of the parameters in the request is not valid.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl ListLayersError
 
impl ListLayersError
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 ListLayersError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
 
pub fn generic(err: ErrorMetadata) -> Self
Creates the ListLayersError::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_too_many_requests_exception(&self) -> bool
 
pub fn is_too_many_requests_exception(&self) -> bool
Returns true if the error kind is ListLayersError::TooManyRequestsException.
sourcepub fn is_service_exception(&self) -> bool
 
pub fn is_service_exception(&self) -> bool
Returns true if the error kind is ListLayersError::ServiceException.
sourcepub fn is_invalid_parameter_value_exception(&self) -> bool
 
pub fn is_invalid_parameter_value_exception(&self) -> bool
Returns true if the error kind is ListLayersError::InvalidParameterValueException.
Trait Implementations§
source§impl CreateUnhandledError for ListLayersError
 
impl CreateUnhandledError for ListLayersError
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 ListLayersError
 
impl Debug for ListLayersError
source§impl Display for ListLayersError
 
impl Display for ListLayersError
source§impl Error for ListLayersError
 
impl Error for ListLayersError
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<ListLayersError> for Error
 
impl From<ListLayersError> for Error
source§fn from(err: ListLayersError) -> Self
 
fn from(err: ListLayersError) -> Self
source§impl ProvideErrorKind for ListLayersError
 
impl ProvideErrorKind for ListLayersError
source§impl ProvideErrorMetadata for ListLayersError
 
impl ProvideErrorMetadata for ListLayersError
source§fn meta(&self) -> &ErrorMetadata
 
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ListLayersError
 
impl RequestId for ListLayersError
source§fn request_id(&self) -> Option<&str>
 
fn request_id(&self) -> Option<&str>
None if the service could not be reached.