#[non_exhaustive]
pub enum Error { AccessDeniedException(AccessDeniedException), ConflictException(ConflictException), InternalServerException(InternalServerException), ResourceNotFoundException(ResourceNotFoundException), ServiceQuotaExceededException(ServiceQuotaExceededException), ThrottlingException(ThrottlingException), ValidationException(ValidationException), Unhandled(Unhandled), }
Expand description

All possible error types for this service.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

AccessDeniedException(AccessDeniedException)

The operation did not succeed because of an unauthorized access attempt.

§

ConflictException(ConflictException)

The operation did not succeed because prerequisites are not met.

§

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.

§

ServiceQuotaExceededException(ServiceQuotaExceededException)

The operation did not succeed because it would have exceeded a service limit for your account.

§

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).

Trait Implementations§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<AssociateExternalConnectionError> for Error

source§

fn from(err: AssociateExternalConnectionError) -> Self

Converts to this type from the input type.
source§

impl From<CopyPackageVersionsError> for Error

source§

fn from(err: CopyPackageVersionsError) -> Self

Converts to this type from the input type.
source§

impl From<CreateDomainError> for Error

source§

fn from(err: CreateDomainError) -> Self

Converts to this type from the input type.
source§

impl From<CreateRepositoryError> for Error

source§

fn from(err: CreateRepositoryError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteDomainError> for Error

source§

fn from(err: DeleteDomainError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteDomainPermissionsPolicyError> for Error

source§

fn from(err: DeleteDomainPermissionsPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<DeletePackageError> for Error

source§

fn from(err: DeletePackageError) -> Self

Converts to this type from the input type.
source§

impl From<DeletePackageVersionsError> for Error

source§

fn from(err: DeletePackageVersionsError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteRepositoryError> for Error

source§

fn from(err: DeleteRepositoryError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteRepositoryPermissionsPolicyError> for Error

source§

fn from(err: DeleteRepositoryPermissionsPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeDomainError> for Error

source§

fn from(err: DescribeDomainError) -> Self

Converts to this type from the input type.
source§

impl From<DescribePackageError> for Error

source§

fn from(err: DescribePackageError) -> Self

Converts to this type from the input type.
source§

impl From<DescribePackageVersionError> for Error

source§

fn from(err: DescribePackageVersionError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeRepositoryError> for Error

source§

fn from(err: DescribeRepositoryError) -> Self

Converts to this type from the input type.
source§

impl From<DisassociateExternalConnectionError> for Error

source§

fn from(err: DisassociateExternalConnectionError) -> Self

Converts to this type from the input type.
source§

impl From<DisposePackageVersionsError> for Error

source§

fn from(err: DisposePackageVersionsError) -> Self

Converts to this type from the input type.
source§

impl From<GetAuthorizationTokenError> for Error

source§

fn from(err: GetAuthorizationTokenError) -> Self

Converts to this type from the input type.
source§

impl From<GetDomainPermissionsPolicyError> for Error

source§

fn from(err: GetDomainPermissionsPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<GetPackageVersionAssetError> for Error

source§

fn from(err: GetPackageVersionAssetError) -> Self

Converts to this type from the input type.
source§

impl From<GetPackageVersionReadmeError> for Error

source§

fn from(err: GetPackageVersionReadmeError) -> Self

Converts to this type from the input type.
source§

impl From<GetRepositoryEndpointError> for Error

source§

fn from(err: GetRepositoryEndpointError) -> Self

Converts to this type from the input type.
source§

impl From<GetRepositoryPermissionsPolicyError> for Error

source§

fn from(err: GetRepositoryPermissionsPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<ListDomainsError> for Error

source§

fn from(err: ListDomainsError) -> Self

Converts to this type from the input type.
source§

impl From<ListPackageVersionAssetsError> for Error

source§

fn from(err: ListPackageVersionAssetsError) -> Self

Converts to this type from the input type.
source§

impl From<ListPackageVersionDependenciesError> for Error

source§

fn from(err: ListPackageVersionDependenciesError) -> Self

Converts to this type from the input type.
source§

impl From<ListPackageVersionsError> for Error

source§

fn from(err: ListPackageVersionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListPackagesError> for Error

source§

fn from(err: ListPackagesError) -> Self

Converts to this type from the input type.
source§

impl From<ListRepositoriesError> for Error

source§

fn from(err: ListRepositoriesError) -> Self

Converts to this type from the input type.
source§

impl From<ListRepositoriesInDomainError> for Error

source§

fn from(err: ListRepositoriesInDomainError) -> Self

Converts to this type from the input type.
source§

impl From<ListTagsForResourceError> for Error

source§

fn from(err: ListTagsForResourceError) -> Self

Converts to this type from the input type.
source§

impl From<PublishPackageVersionError> for Error

source§

fn from(err: PublishPackageVersionError) -> Self

Converts to this type from the input type.
source§

impl From<PutDomainPermissionsPolicyError> for Error

source§

fn from(err: PutDomainPermissionsPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<PutPackageOriginConfigurationError> for Error

source§

fn from(err: PutPackageOriginConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<PutRepositoryPermissionsPolicyError> for Error

source§

fn from(err: PutRepositoryPermissionsPolicyError) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<AssociateExternalConnectionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<AssociateExternalConnectionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CopyPackageVersionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CopyPackageVersionsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateDomainError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateDomainError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateRepositoryError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateRepositoryError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteDomainError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteDomainError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteDomainPermissionsPolicyError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteDomainPermissionsPolicyError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeletePackageError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeletePackageError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeletePackageVersionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeletePackageVersionsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteRepositoryError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteRepositoryError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteRepositoryPermissionsPolicyError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteRepositoryPermissionsPolicyError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeDomainError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeDomainError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribePackageError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribePackageError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribePackageVersionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribePackageVersionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeRepositoryError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeRepositoryError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DisassociateExternalConnectionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DisassociateExternalConnectionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DisposePackageVersionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DisposePackageVersionsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetAuthorizationTokenError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetAuthorizationTokenError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetDomainPermissionsPolicyError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetDomainPermissionsPolicyError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetPackageVersionAssetError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetPackageVersionAssetError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetPackageVersionReadmeError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetPackageVersionReadmeError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetRepositoryEndpointError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetRepositoryEndpointError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetRepositoryPermissionsPolicyError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetRepositoryPermissionsPolicyError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListDomainsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListDomainsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListPackageVersionAssetsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListPackageVersionAssetsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListPackageVersionDependenciesError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListPackageVersionDependenciesError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListPackageVersionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListPackageVersionsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListPackagesError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListPackagesError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListRepositoriesError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListRepositoriesError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListRepositoriesInDomainError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListRepositoriesInDomainError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListTagsForResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<PublishPackageVersionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<PublishPackageVersionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<PutDomainPermissionsPolicyError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<PutDomainPermissionsPolicyError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<PutPackageOriginConfigurationError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<PutPackageOriginConfigurationError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<PutRepositoryPermissionsPolicyError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<PutRepositoryPermissionsPolicyError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<TagResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<TagResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UntagResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UntagResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdatePackageVersionsStatusError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdatePackageVersionsStatusError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateRepositoryError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateRepositoryError, R>) -> Self

Converts to this type from the input type.
source§

impl From<TagResourceError> for Error

source§

fn from(err: TagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UntagResourceError> for Error

source§

fn from(err: UntagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UpdatePackageVersionsStatusError> for Error

source§

fn from(err: UpdatePackageVersionsStatusError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateRepositoryError> for Error

source§

fn from(err: UpdateRepositoryError) -> Self

Converts to this type from the input type.
source§

impl RequestId for Error

source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.

Auto Trait Implementations§

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more