Enum aws_sdk_b2bi::Error
source · #[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
AccessDeniedException(AccessDeniedException)
You do not have sufficient access to perform this action.
ConflictException(ConflictException)
A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
InternalServerException(InternalServerException)
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
ResourceNotFoundException(ResourceNotFoundException)
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
ServiceQuotaExceededException(ServiceQuotaExceededException)
Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.
ThrottlingException(ThrottlingException)
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
ValidationException(ValidationException)
Occurs when a B2BI object cannot be validated against a request from another object.
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).
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
source§impl From<CreateCapabilityError> for Error
impl From<CreateCapabilityError> for Error
source§fn from(err: CreateCapabilityError) -> Self
fn from(err: CreateCapabilityError) -> Self
source§impl From<CreatePartnershipError> for Error
impl From<CreatePartnershipError> for Error
source§fn from(err: CreatePartnershipError) -> Self
fn from(err: CreatePartnershipError) -> Self
source§impl From<CreateProfileError> for Error
impl From<CreateProfileError> for Error
source§fn from(err: CreateProfileError) -> Self
fn from(err: CreateProfileError) -> Self
source§impl From<CreateTransformerError> for Error
impl From<CreateTransformerError> for Error
source§fn from(err: CreateTransformerError) -> Self
fn from(err: CreateTransformerError) -> Self
source§impl From<DeleteCapabilityError> for Error
impl From<DeleteCapabilityError> for Error
source§fn from(err: DeleteCapabilityError) -> Self
fn from(err: DeleteCapabilityError) -> Self
source§impl From<DeletePartnershipError> for Error
impl From<DeletePartnershipError> for Error
source§fn from(err: DeletePartnershipError) -> Self
fn from(err: DeletePartnershipError) -> Self
source§impl From<DeleteProfileError> for Error
impl From<DeleteProfileError> for Error
source§fn from(err: DeleteProfileError) -> Self
fn from(err: DeleteProfileError) -> Self
source§impl From<DeleteTransformerError> for Error
impl From<DeleteTransformerError> for Error
source§fn from(err: DeleteTransformerError) -> Self
fn from(err: DeleteTransformerError) -> Self
source§impl From<GetCapabilityError> for Error
impl From<GetCapabilityError> for Error
source§fn from(err: GetCapabilityError) -> Self
fn from(err: GetCapabilityError) -> Self
source§impl From<GetPartnershipError> for Error
impl From<GetPartnershipError> for Error
source§fn from(err: GetPartnershipError) -> Self
fn from(err: GetPartnershipError) -> Self
source§impl From<GetProfileError> for Error
impl From<GetProfileError> for Error
source§fn from(err: GetProfileError) -> Self
fn from(err: GetProfileError) -> Self
source§impl From<GetTransformerError> for Error
impl From<GetTransformerError> for Error
source§fn from(err: GetTransformerError) -> Self
fn from(err: GetTransformerError) -> Self
source§impl From<GetTransformerJobError> for Error
impl From<GetTransformerJobError> for Error
source§fn from(err: GetTransformerJobError) -> Self
fn from(err: GetTransformerJobError) -> Self
source§impl From<ListCapabilitiesError> for Error
impl From<ListCapabilitiesError> for Error
source§fn from(err: ListCapabilitiesError) -> Self
fn from(err: ListCapabilitiesError) -> Self
source§impl From<ListPartnershipsError> for Error
impl From<ListPartnershipsError> for Error
source§fn from(err: ListPartnershipsError) -> Self
fn from(err: ListPartnershipsError) -> Self
source§impl From<ListProfilesError> for Error
impl From<ListProfilesError> for Error
source§fn from(err: ListProfilesError) -> Self
fn from(err: ListProfilesError) -> Self
source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
source§impl From<ListTransformersError> for Error
impl From<ListTransformersError> for Error
source§fn from(err: ListTransformersError) -> Self
fn from(err: ListTransformersError) -> Self
source§impl<R> From<SdkError<CreateCapabilityError, R>> for Error
impl<R> From<SdkError<CreateCapabilityError, R>> for Error
source§fn from(err: SdkError<CreateCapabilityError, R>) -> Self
fn from(err: SdkError<CreateCapabilityError, R>) -> Self
source§impl<R> From<SdkError<CreatePartnershipError, R>> for Error
impl<R> From<SdkError<CreatePartnershipError, R>> for Error
source§fn from(err: SdkError<CreatePartnershipError, R>) -> Self
fn from(err: SdkError<CreatePartnershipError, R>) -> Self
source§impl<R> From<SdkError<CreateProfileError, R>> for Error
impl<R> From<SdkError<CreateProfileError, R>> for Error
source§fn from(err: SdkError<CreateProfileError, R>) -> Self
fn from(err: SdkError<CreateProfileError, R>) -> Self
source§impl<R> From<SdkError<CreateTransformerError, R>> for Error
impl<R> From<SdkError<CreateTransformerError, R>> for Error
source§fn from(err: SdkError<CreateTransformerError, R>) -> Self
fn from(err: SdkError<CreateTransformerError, R>) -> Self
source§impl<R> From<SdkError<DeleteCapabilityError, R>> for Error
impl<R> From<SdkError<DeleteCapabilityError, R>> for Error
source§fn from(err: SdkError<DeleteCapabilityError, R>) -> Self
fn from(err: SdkError<DeleteCapabilityError, R>) -> Self
source§impl<R> From<SdkError<DeletePartnershipError, R>> for Error
impl<R> From<SdkError<DeletePartnershipError, R>> for Error
source§fn from(err: SdkError<DeletePartnershipError, R>) -> Self
fn from(err: SdkError<DeletePartnershipError, R>) -> Self
source§impl<R> From<SdkError<DeleteProfileError, R>> for Error
impl<R> From<SdkError<DeleteProfileError, R>> for Error
source§fn from(err: SdkError<DeleteProfileError, R>) -> Self
fn from(err: SdkError<DeleteProfileError, R>) -> Self
source§impl<R> From<SdkError<DeleteTransformerError, R>> for Error
impl<R> From<SdkError<DeleteTransformerError, R>> for Error
source§fn from(err: SdkError<DeleteTransformerError, R>) -> Self
fn from(err: SdkError<DeleteTransformerError, R>) -> Self
source§impl<R> From<SdkError<GetCapabilityError, R>> for Error
impl<R> From<SdkError<GetCapabilityError, R>> for Error
source§fn from(err: SdkError<GetCapabilityError, R>) -> Self
fn from(err: SdkError<GetCapabilityError, R>) -> Self
source§impl<R> From<SdkError<GetPartnershipError, R>> for Error
impl<R> From<SdkError<GetPartnershipError, R>> for Error
source§fn from(err: SdkError<GetPartnershipError, R>) -> Self
fn from(err: SdkError<GetPartnershipError, R>) -> Self
source§impl<R> From<SdkError<GetProfileError, R>> for Error
impl<R> From<SdkError<GetProfileError, R>> for Error
source§fn from(err: SdkError<GetProfileError, R>) -> Self
fn from(err: SdkError<GetProfileError, R>) -> Self
source§impl<R> From<SdkError<GetTransformerError, R>> for Error
impl<R> From<SdkError<GetTransformerError, R>> for Error
source§fn from(err: SdkError<GetTransformerError, R>) -> Self
fn from(err: SdkError<GetTransformerError, R>) -> Self
source§impl<R> From<SdkError<GetTransformerJobError, R>> for Error
impl<R> From<SdkError<GetTransformerJobError, R>> for Error
source§fn from(err: SdkError<GetTransformerJobError, R>) -> Self
fn from(err: SdkError<GetTransformerJobError, R>) -> Self
source§impl<R> From<SdkError<ListCapabilitiesError, R>> for Error
impl<R> From<SdkError<ListCapabilitiesError, R>> for Error
source§fn from(err: SdkError<ListCapabilitiesError, R>) -> Self
fn from(err: SdkError<ListCapabilitiesError, R>) -> Self
source§impl<R> From<SdkError<ListPartnershipsError, R>> for Error
impl<R> From<SdkError<ListPartnershipsError, R>> for Error
source§fn from(err: SdkError<ListPartnershipsError, R>) -> Self
fn from(err: SdkError<ListPartnershipsError, R>) -> Self
source§impl<R> From<SdkError<ListProfilesError, R>> for Error
impl<R> From<SdkError<ListProfilesError, R>> for Error
source§fn from(err: SdkError<ListProfilesError, R>) -> Self
fn from(err: SdkError<ListProfilesError, R>) -> Self
source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
source§impl<R> From<SdkError<ListTransformersError, R>> for Error
impl<R> From<SdkError<ListTransformersError, R>> for Error
source§fn from(err: SdkError<ListTransformersError, R>) -> Self
fn from(err: SdkError<ListTransformersError, R>) -> Self
source§impl<R> From<SdkError<StartTransformerJobError, R>> for Error
impl<R> From<SdkError<StartTransformerJobError, R>> for Error
source§fn from(err: SdkError<StartTransformerJobError, R>) -> Self
fn from(err: SdkError<StartTransformerJobError, R>) -> Self
source§impl<R> From<SdkError<TagResourceError, R>> for Error
impl<R> From<SdkError<TagResourceError, R>> for Error
source§fn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
source§impl<R> From<SdkError<TestMappingError, R>> for Error
impl<R> From<SdkError<TestMappingError, R>> for Error
source§fn from(err: SdkError<TestMappingError, R>) -> Self
fn from(err: SdkError<TestMappingError, R>) -> Self
source§impl<R> From<SdkError<TestParsingError, R>> for Error
impl<R> From<SdkError<TestParsingError, R>> for Error
source§fn from(err: SdkError<TestParsingError, R>) -> Self
fn from(err: SdkError<TestParsingError, R>) -> Self
source§impl<R> From<SdkError<UntagResourceError, R>> for Error
impl<R> From<SdkError<UntagResourceError, R>> for Error
source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
source§impl<R> From<SdkError<UpdateCapabilityError, R>> for Error
impl<R> From<SdkError<UpdateCapabilityError, R>> for Error
source§fn from(err: SdkError<UpdateCapabilityError, R>) -> Self
fn from(err: SdkError<UpdateCapabilityError, R>) -> Self
source§impl<R> From<SdkError<UpdatePartnershipError, R>> for Error
impl<R> From<SdkError<UpdatePartnershipError, R>> for Error
source§fn from(err: SdkError<UpdatePartnershipError, R>) -> Self
fn from(err: SdkError<UpdatePartnershipError, R>) -> Self
source§impl<R> From<SdkError<UpdateProfileError, R>> for Error
impl<R> From<SdkError<UpdateProfileError, R>> for Error
source§fn from(err: SdkError<UpdateProfileError, R>) -> Self
fn from(err: SdkError<UpdateProfileError, R>) -> Self
source§impl<R> From<SdkError<UpdateTransformerError, R>> for Error
impl<R> From<SdkError<UpdateTransformerError, R>> for Error
source§fn from(err: SdkError<UpdateTransformerError, R>) -> Self
fn from(err: SdkError<UpdateTransformerError, R>) -> Self
source§impl From<StartTransformerJobError> for Error
impl From<StartTransformerJobError> for Error
source§fn from(err: StartTransformerJobError) -> Self
fn from(err: StartTransformerJobError) -> Self
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
source§impl From<TestMappingError> for Error
impl From<TestMappingError> for Error
source§fn from(err: TestMappingError) -> Self
fn from(err: TestMappingError) -> Self
source§impl From<TestParsingError> for Error
impl From<TestParsingError> for Error
source§fn from(err: TestParsingError) -> Self
fn from(err: TestParsingError) -> Self
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
source§impl From<UpdateCapabilityError> for Error
impl From<UpdateCapabilityError> for Error
source§fn from(err: UpdateCapabilityError) -> Self
fn from(err: UpdateCapabilityError) -> Self
source§impl From<UpdatePartnershipError> for Error
impl From<UpdatePartnershipError> for Error
source§fn from(err: UpdatePartnershipError) -> Self
fn from(err: UpdatePartnershipError) -> Self
source§impl From<UpdateProfileError> for Error
impl From<UpdateProfileError> for Error
source§fn from(err: UpdateProfileError) -> Self
fn from(err: UpdateProfileError) -> Self
source§impl From<UpdateTransformerError> for Error
impl From<UpdateTransformerError> for Error
source§fn from(err: UpdateTransformerError) -> Self
fn from(err: UpdateTransformerError) -> Self
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Auto Trait Implementations§
impl Freeze for Error
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more