#[non_exhaustive]pub enum ListLogSourcesError {
AccessDeniedException(AccessDeniedException),
BadRequestException(BadRequestException),
ConflictException(ConflictException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
ThrottlingException(ThrottlingException),
Unhandled(Unhandled),
}
Expand description
Error type for the ListLogSourcesError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You do not have sufficient access to perform this action. Access denied errors appear when Amazon Security Lake explicitly or implicitly denies an authorization request. An explicit denial occurs when a policy contains a Deny statement for the specific Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also no applicable Allow statement.
BadRequestException(BadRequestException)
The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.
ConflictException(ConflictException)
Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.
InternalServerException(InternalServerException)
Internal service exceptions are sometimes caused by transient issues. Before you start troubleshooting, perform the operation again.
ResourceNotFoundException(ResourceNotFoundException)
The resource could not be found.
ThrottlingException(ThrottlingException)
The limit on the number of requests per second was exceeded.
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 ListLogSourcesError
impl ListLogSourcesError
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 ListLogSourcesError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ListLogSourcesError::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_access_denied_exception(&self) -> bool
pub fn is_access_denied_exception(&self) -> bool
Returns true
if the error kind is ListLogSourcesError::AccessDeniedException
.
sourcepub fn is_bad_request_exception(&self) -> bool
pub fn is_bad_request_exception(&self) -> bool
Returns true
if the error kind is ListLogSourcesError::BadRequestException
.
sourcepub fn is_conflict_exception(&self) -> bool
pub fn is_conflict_exception(&self) -> bool
Returns true
if the error kind is ListLogSourcesError::ConflictException
.
sourcepub fn is_internal_server_exception(&self) -> bool
pub fn is_internal_server_exception(&self) -> bool
Returns true
if the error kind is ListLogSourcesError::InternalServerException
.
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 ListLogSourcesError::ResourceNotFoundException
.
sourcepub fn is_throttling_exception(&self) -> bool
pub fn is_throttling_exception(&self) -> bool
Returns true
if the error kind is ListLogSourcesError::ThrottlingException
.
Trait Implementations§
source§impl CreateUnhandledError for ListLogSourcesError
impl CreateUnhandledError for ListLogSourcesError
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 ListLogSourcesError
impl Debug for ListLogSourcesError
source§impl Display for ListLogSourcesError
impl Display for ListLogSourcesError
source§impl Error for ListLogSourcesError
impl Error for ListLogSourcesError
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<ListLogSourcesError> for Error
impl From<ListLogSourcesError> for Error
source§fn from(err: ListLogSourcesError) -> Self
fn from(err: ListLogSourcesError) -> Self
source§impl ProvideErrorMetadata for ListLogSourcesError
impl ProvideErrorMetadata for ListLogSourcesError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ListLogSourcesError
impl RequestId for ListLogSourcesError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.