#[non_exhaustive]
pub enum ListPackageVersionsErrorKind {
AccessDeniedException(AccessDeniedException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
ThrottlingException(ThrottlingException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
Types of errors that can occur for the ListPackageVersions
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
The operation did not succeed because of an unauthorized access attempt.
InternalServerException(InternalServerException)
The operation did not succeed because of an error that occurred inside CodeArtifact.
ResourceNotFoundException(ResourceNotFoundException)
The operation did not succeed because the resource requested is not found in the service.
ThrottlingException(ThrottlingException)
The operation did not succeed because too many requests are sent to the service.
ValidationException(ValidationException)
The operation did not succeed because a parameter in the request was sent with an invalid value.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
When logging an error from the SDK, it is recommended that you either wrap the error in
DisplayErrorContext
, use another
error reporter library that visits the error’s cause/source chain, or call
Error::source
for more details about the underlying cause.