Enum aws_sdk_dataexchange::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
ConflictException(ConflictException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceLimitExceededException(ServiceLimitExceededException),
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)
Access to the resource is denied.
ConflictException(ConflictException)
The request couldn't be completed because it conflicted with the current state of the resource.
InternalServerException(InternalServerException)
An exception occurred with the service.
ResourceNotFoundException(ResourceNotFoundException)
The resource couldn't be found.
ServiceLimitExceededException(ServiceLimitExceededException)
The request has exceeded the quotas imposed by the service.
ThrottlingException(ThrottlingException)
The limit on the number of requests per second was exceeded.
ValidationException(ValidationException)
The request was invalid.
Unhandled(Unhandled)
👎Deprecated: Matching
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)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
Converts to this type from the input type.
source§impl From<CancelJobError> for Error
impl From<CancelJobError> for Error
source§fn from(err: CancelJobError) -> Self
fn from(err: CancelJobError) -> Self
Converts to this type from the input type.
source§impl From<CreateDataSetError> for Error
impl From<CreateDataSetError> for Error
source§fn from(err: CreateDataSetError) -> Self
fn from(err: CreateDataSetError) -> Self
Converts to this type from the input type.
source§impl From<CreateEventActionError> for Error
impl From<CreateEventActionError> for Error
source§fn from(err: CreateEventActionError) -> Self
fn from(err: CreateEventActionError) -> Self
Converts to this type from the input type.
source§impl From<CreateJobError> for Error
impl From<CreateJobError> for Error
source§fn from(err: CreateJobError) -> Self
fn from(err: CreateJobError) -> Self
Converts to this type from the input type.
source§impl From<CreateRevisionError> for Error
impl From<CreateRevisionError> for Error
source§fn from(err: CreateRevisionError) -> Self
fn from(err: CreateRevisionError) -> Self
Converts to this type from the input type.
source§impl From<DeleteAssetError> for Error
impl From<DeleteAssetError> for Error
source§fn from(err: DeleteAssetError) -> Self
fn from(err: DeleteAssetError) -> Self
Converts to this type from the input type.
source§impl From<DeleteDataSetError> for Error
impl From<DeleteDataSetError> for Error
source§fn from(err: DeleteDataSetError) -> Self
fn from(err: DeleteDataSetError) -> Self
Converts to this type from the input type.
source§impl From<DeleteEventActionError> for Error
impl From<DeleteEventActionError> for Error
source§fn from(err: DeleteEventActionError) -> Self
fn from(err: DeleteEventActionError) -> Self
Converts to this type from the input type.
source§impl From<DeleteRevisionError> for Error
impl From<DeleteRevisionError> for Error
source§fn from(err: DeleteRevisionError) -> Self
fn from(err: DeleteRevisionError) -> Self
Converts to this type from the input type.
source§impl From<GetAssetError> for Error
impl From<GetAssetError> for Error
source§fn from(err: GetAssetError) -> Self
fn from(err: GetAssetError) -> Self
Converts to this type from the input type.
source§impl From<GetDataSetError> for Error
impl From<GetDataSetError> for Error
source§fn from(err: GetDataSetError) -> Self
fn from(err: GetDataSetError) -> Self
Converts to this type from the input type.
source§impl From<GetEventActionError> for Error
impl From<GetEventActionError> for Error
source§fn from(err: GetEventActionError) -> Self
fn from(err: GetEventActionError) -> Self
Converts to this type from the input type.
source§impl From<GetJobError> for Error
impl From<GetJobError> for Error
source§fn from(err: GetJobError) -> Self
fn from(err: GetJobError) -> Self
Converts to this type from the input type.
source§impl From<GetRevisionError> for Error
impl From<GetRevisionError> for Error
source§fn from(err: GetRevisionError) -> Self
fn from(err: GetRevisionError) -> Self
Converts to this type from the input type.
source§impl From<ListDataSetRevisionsError> for Error
impl From<ListDataSetRevisionsError> for Error
source§fn from(err: ListDataSetRevisionsError) -> Self
fn from(err: ListDataSetRevisionsError) -> Self
Converts to this type from the input type.
source§impl From<ListDataSetsError> for Error
impl From<ListDataSetsError> for Error
source§fn from(err: ListDataSetsError) -> Self
fn from(err: ListDataSetsError) -> Self
Converts to this type from the input type.
source§impl From<ListEventActionsError> for Error
impl From<ListEventActionsError> for Error
source§fn from(err: ListEventActionsError) -> Self
fn from(err: ListEventActionsError) -> Self
Converts to this type from the input type.
source§impl From<ListJobsError> for Error
impl From<ListJobsError> for Error
source§fn from(err: ListJobsError) -> Self
fn from(err: ListJobsError) -> Self
Converts to this type from the input type.
source§impl From<ListRevisionAssetsError> for Error
impl From<ListRevisionAssetsError> for Error
source§fn from(err: ListRevisionAssetsError) -> Self
fn from(err: ListRevisionAssetsError) -> Self
Converts to this type from the input type.
source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
Converts to this type from the input type.
source§impl From<RevokeRevisionError> for Error
impl From<RevokeRevisionError> for Error
source§fn from(err: RevokeRevisionError) -> Self
fn from(err: RevokeRevisionError) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CancelJobError, R>> for Error
impl<R> From<SdkError<CancelJobError, R>> for Error
source§fn from(err: SdkError<CancelJobError, R>) -> Self
fn from(err: SdkError<CancelJobError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateDataSetError, R>> for Error
impl<R> From<SdkError<CreateDataSetError, R>> for Error
source§fn from(err: SdkError<CreateDataSetError, R>) -> Self
fn from(err: SdkError<CreateDataSetError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateEventActionError, R>> for Error
impl<R> From<SdkError<CreateEventActionError, R>> for Error
source§fn from(err: SdkError<CreateEventActionError, R>) -> Self
fn from(err: SdkError<CreateEventActionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateJobError, R>> for Error
impl<R> From<SdkError<CreateJobError, R>> for Error
source§fn from(err: SdkError<CreateJobError, R>) -> Self
fn from(err: SdkError<CreateJobError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateRevisionError, R>> for Error
impl<R> From<SdkError<CreateRevisionError, R>> for Error
source§fn from(err: SdkError<CreateRevisionError, R>) -> Self
fn from(err: SdkError<CreateRevisionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteAssetError, R>> for Error
impl<R> From<SdkError<DeleteAssetError, R>> for Error
source§fn from(err: SdkError<DeleteAssetError, R>) -> Self
fn from(err: SdkError<DeleteAssetError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteDataSetError, R>> for Error
impl<R> From<SdkError<DeleteDataSetError, R>> for Error
source§fn from(err: SdkError<DeleteDataSetError, R>) -> Self
fn from(err: SdkError<DeleteDataSetError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteEventActionError, R>> for Error
impl<R> From<SdkError<DeleteEventActionError, R>> for Error
source§fn from(err: SdkError<DeleteEventActionError, R>) -> Self
fn from(err: SdkError<DeleteEventActionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteRevisionError, R>> for Error
impl<R> From<SdkError<DeleteRevisionError, R>> for Error
source§fn from(err: SdkError<DeleteRevisionError, R>) -> Self
fn from(err: SdkError<DeleteRevisionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetAssetError, R>> for Error
impl<R> From<SdkError<GetAssetError, R>> for Error
source§fn from(err: SdkError<GetAssetError, R>) -> Self
fn from(err: SdkError<GetAssetError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetDataSetError, R>> for Error
impl<R> From<SdkError<GetDataSetError, R>> for Error
source§fn from(err: SdkError<GetDataSetError, R>) -> Self
fn from(err: SdkError<GetDataSetError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetEventActionError, R>> for Error
impl<R> From<SdkError<GetEventActionError, R>> for Error
source§fn from(err: SdkError<GetEventActionError, R>) -> Self
fn from(err: SdkError<GetEventActionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetJobError, R>> for Error
impl<R> From<SdkError<GetJobError, R>> for Error
source§fn from(err: SdkError<GetJobError, R>) -> Self
fn from(err: SdkError<GetJobError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetRevisionError, R>> for Error
impl<R> From<SdkError<GetRevisionError, R>> for Error
source§fn from(err: SdkError<GetRevisionError, R>) -> Self
fn from(err: SdkError<GetRevisionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListDataSetRevisionsError, R>> for Error
impl<R> From<SdkError<ListDataSetRevisionsError, R>> for Error
source§fn from(err: SdkError<ListDataSetRevisionsError, R>) -> Self
fn from(err: SdkError<ListDataSetRevisionsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListDataSetsError, R>> for Error
impl<R> From<SdkError<ListDataSetsError, R>> for Error
source§fn from(err: SdkError<ListDataSetsError, R>) -> Self
fn from(err: SdkError<ListDataSetsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListEventActionsError, R>> for Error
impl<R> From<SdkError<ListEventActionsError, R>> for Error
source§fn from(err: SdkError<ListEventActionsError, R>) -> Self
fn from(err: SdkError<ListEventActionsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListJobsError, R>> for Error
impl<R> From<SdkError<ListJobsError, R>> for Error
source§fn from(err: SdkError<ListJobsError, R>) -> Self
fn from(err: SdkError<ListJobsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListRevisionAssetsError, R>> for Error
impl<R> From<SdkError<ListRevisionAssetsError, R>> for Error
source§fn from(err: SdkError<ListRevisionAssetsError, R>) -> Self
fn from(err: SdkError<ListRevisionAssetsError, R>) -> Self
Converts to this type from the input type.
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
Converts to this type from the input type.
source§impl<R> From<SdkError<RevokeRevisionError, R>> for Error
impl<R> From<SdkError<RevokeRevisionError, R>> for Error
source§fn from(err: SdkError<RevokeRevisionError, R>) -> Self
fn from(err: SdkError<RevokeRevisionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<SendApiAssetError, R>> for Error
impl<R> From<SdkError<SendApiAssetError, R>> for Error
source§fn from(err: SdkError<SendApiAssetError, R>) -> Self
fn from(err: SdkError<SendApiAssetError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<SendDataSetNotificationError, R>> for Error
impl<R> From<SdkError<SendDataSetNotificationError, R>> for Error
source§fn from(err: SdkError<SendDataSetNotificationError, R>) -> Self
fn from(err: SdkError<SendDataSetNotificationError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<StartJobError, R>> for Error
impl<R> From<SdkError<StartJobError, R>> for Error
source§fn from(err: SdkError<StartJobError, R>) -> Self
fn from(err: SdkError<StartJobError, R>) -> Self
Converts to this type from the input type.
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
Converts to this type from the input type.
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
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateAssetError, R>> for Error
impl<R> From<SdkError<UpdateAssetError, R>> for Error
source§fn from(err: SdkError<UpdateAssetError, R>) -> Self
fn from(err: SdkError<UpdateAssetError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateDataSetError, R>> for Error
impl<R> From<SdkError<UpdateDataSetError, R>> for Error
source§fn from(err: SdkError<UpdateDataSetError, R>) -> Self
fn from(err: SdkError<UpdateDataSetError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateEventActionError, R>> for Error
impl<R> From<SdkError<UpdateEventActionError, R>> for Error
source§fn from(err: SdkError<UpdateEventActionError, R>) -> Self
fn from(err: SdkError<UpdateEventActionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateRevisionError, R>> for Error
impl<R> From<SdkError<UpdateRevisionError, R>> for Error
source§fn from(err: SdkError<UpdateRevisionError, R>) -> Self
fn from(err: SdkError<UpdateRevisionError, R>) -> Self
Converts to this type from the input type.
source§impl From<SendApiAssetError> for Error
impl From<SendApiAssetError> for Error
source§fn from(err: SendApiAssetError) -> Self
fn from(err: SendApiAssetError) -> Self
Converts to this type from the input type.
source§impl From<SendDataSetNotificationError> for Error
impl From<SendDataSetNotificationError> for Error
source§fn from(err: SendDataSetNotificationError) -> Self
fn from(err: SendDataSetNotificationError) -> Self
Converts to this type from the input type.
source§impl From<StartJobError> for Error
impl From<StartJobError> for Error
source§fn from(err: StartJobError) -> Self
fn from(err: StartJobError) -> Self
Converts to this type from the input type.
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
Converts to this type from the input type.
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
Converts to this type from the input type.
source§impl From<UpdateAssetError> for Error
impl From<UpdateAssetError> for Error
source§fn from(err: UpdateAssetError) -> Self
fn from(err: UpdateAssetError) -> Self
Converts to this type from the input type.
source§impl From<UpdateDataSetError> for Error
impl From<UpdateDataSetError> for Error
source§fn from(err: UpdateDataSetError) -> Self
fn from(err: UpdateDataSetError) -> Self
Converts to this type from the input type.
source§impl From<UpdateEventActionError> for Error
impl From<UpdateEventActionError> for Error
source§fn from(err: UpdateEventActionError) -> Self
fn from(err: UpdateEventActionError) -> Self
Converts to this type from the input type.
source§impl From<UpdateRevisionError> for Error
impl From<UpdateRevisionError> for Error
source§fn from(err: UpdateRevisionError) -> Self
fn from(err: UpdateRevisionError) -> Self
Converts to this type from the input type.
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message,
request ID, and potentially additional information.
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.