Enum aws_sdk_resourceexplorer2::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
ConflictException(ConflictException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
ThrottlingException(ThrottlingException),
UnauthorizedException(UnauthorizedException),
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)
The credentials that you used to call this operation don't have the minimum required permissions.
ConflictException(ConflictException)
If you attempted to create a view, then the request failed because either you specified parameters that didn’t match the original request, or you attempted to create a view with a name that already exists in this Amazon Web Services Region.
If you attempted to create an index, then the request failed because either you specified parameters that didn't match the original request, or an index already exists in the current Amazon Web Services Region.
If you attempted to update an index type to AGGREGATOR, then the request failed because you already have an AGGREGATOR index in a different Amazon Web Services Region.
InternalServerException(InternalServerException)
The request failed because of internal service error. Try your request again later.
ResourceNotFoundException(ResourceNotFoundException)
You specified a resource that doesn't exist. Check the ID or ARN that you used to identity the resource, and try again.
ServiceQuotaExceededException(ServiceQuotaExceededException)
The request failed because it exceeds a service quota.
ThrottlingException(ThrottlingException)
The request failed because you exceeded a rate limit for this operation. For more information, see Quotas for Resource Explorer.
The principal making the request isn't permitted to perform the operation.
ValidationException(ValidationException)
You provided an invalid value for one of the operation's parameters. Check the syntax for the operation, and try again.
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<AssociateDefaultViewError> for Error
impl From<AssociateDefaultViewError> for Error
source§fn from(err: AssociateDefaultViewError) -> Self
fn from(err: AssociateDefaultViewError) -> Self
source§impl From<BatchGetViewError> for Error
impl From<BatchGetViewError> for Error
source§fn from(err: BatchGetViewError) -> Self
fn from(err: BatchGetViewError) -> Self
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<CreateIndexError> for Error
impl From<CreateIndexError> for Error
source§fn from(err: CreateIndexError) -> Self
fn from(err: CreateIndexError) -> Self
source§impl From<CreateViewError> for Error
impl From<CreateViewError> for Error
source§fn from(err: CreateViewError) -> Self
fn from(err: CreateViewError) -> Self
source§impl From<DeleteIndexError> for Error
impl From<DeleteIndexError> for Error
source§fn from(err: DeleteIndexError) -> Self
fn from(err: DeleteIndexError) -> Self
source§impl From<DeleteViewError> for Error
impl From<DeleteViewError> for Error
source§fn from(err: DeleteViewError) -> Self
fn from(err: DeleteViewError) -> Self
source§impl From<DisassociateDefaultViewError> for Error
impl From<DisassociateDefaultViewError> for Error
source§fn from(err: DisassociateDefaultViewError) -> Self
fn from(err: DisassociateDefaultViewError) -> Self
source§impl From<GetAccountLevelServiceConfigurationError> for Error
impl From<GetAccountLevelServiceConfigurationError> for Error
source§fn from(err: GetAccountLevelServiceConfigurationError) -> Self
fn from(err: GetAccountLevelServiceConfigurationError) -> Self
source§impl From<GetDefaultViewError> for Error
impl From<GetDefaultViewError> for Error
source§fn from(err: GetDefaultViewError) -> Self
fn from(err: GetDefaultViewError) -> Self
source§impl From<GetIndexError> for Error
impl From<GetIndexError> for Error
source§fn from(err: GetIndexError) -> Self
fn from(err: GetIndexError) -> Self
source§impl From<GetViewError> for Error
impl From<GetViewError> for Error
source§fn from(err: GetViewError) -> Self
fn from(err: GetViewError) -> Self
source§impl From<ListIndexesError> for Error
impl From<ListIndexesError> for Error
source§fn from(err: ListIndexesError) -> Self
fn from(err: ListIndexesError) -> Self
source§impl From<ListIndexesForMembersError> for Error
impl From<ListIndexesForMembersError> for Error
source§fn from(err: ListIndexesForMembersError) -> Self
fn from(err: ListIndexesForMembersError) -> Self
source§impl From<ListSupportedResourceTypesError> for Error
impl From<ListSupportedResourceTypesError> for Error
source§fn from(err: ListSupportedResourceTypesError) -> Self
fn from(err: ListSupportedResourceTypesError) -> 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<ListViewsError> for Error
impl From<ListViewsError> for Error
source§fn from(err: ListViewsError) -> Self
fn from(err: ListViewsError) -> Self
source§impl<R> From<SdkError<AssociateDefaultViewError, R>> for Error
impl<R> From<SdkError<AssociateDefaultViewError, R>> for Error
source§fn from(err: SdkError<AssociateDefaultViewError, R>) -> Self
fn from(err: SdkError<AssociateDefaultViewError, R>) -> Self
source§impl<R> From<SdkError<BatchGetViewError, R>> for Error
impl<R> From<SdkError<BatchGetViewError, R>> for Error
source§fn from(err: SdkError<BatchGetViewError, R>) -> Self
fn from(err: SdkError<BatchGetViewError, R>) -> Self
source§impl<R> From<SdkError<CreateIndexError, R>> for Error
impl<R> From<SdkError<CreateIndexError, R>> for Error
source§fn from(err: SdkError<CreateIndexError, R>) -> Self
fn from(err: SdkError<CreateIndexError, R>) -> Self
source§impl<R> From<SdkError<CreateViewError, R>> for Error
impl<R> From<SdkError<CreateViewError, R>> for Error
source§fn from(err: SdkError<CreateViewError, R>) -> Self
fn from(err: SdkError<CreateViewError, R>) -> Self
source§impl<R> From<SdkError<DeleteIndexError, R>> for Error
impl<R> From<SdkError<DeleteIndexError, R>> for Error
source§fn from(err: SdkError<DeleteIndexError, R>) -> Self
fn from(err: SdkError<DeleteIndexError, R>) -> Self
source§impl<R> From<SdkError<DeleteViewError, R>> for Error
impl<R> From<SdkError<DeleteViewError, R>> for Error
source§fn from(err: SdkError<DeleteViewError, R>) -> Self
fn from(err: SdkError<DeleteViewError, R>) -> Self
source§impl<R> From<SdkError<DisassociateDefaultViewError, R>> for Error
impl<R> From<SdkError<DisassociateDefaultViewError, R>> for Error
source§fn from(err: SdkError<DisassociateDefaultViewError, R>) -> Self
fn from(err: SdkError<DisassociateDefaultViewError, R>) -> Self
source§impl<R> From<SdkError<GetAccountLevelServiceConfigurationError, R>> for Error
impl<R> From<SdkError<GetAccountLevelServiceConfigurationError, R>> for Error
source§fn from(err: SdkError<GetAccountLevelServiceConfigurationError, R>) -> Self
fn from(err: SdkError<GetAccountLevelServiceConfigurationError, R>) -> Self
source§impl<R> From<SdkError<GetDefaultViewError, R>> for Error
impl<R> From<SdkError<GetDefaultViewError, R>> for Error
source§fn from(err: SdkError<GetDefaultViewError, R>) -> Self
fn from(err: SdkError<GetDefaultViewError, R>) -> Self
source§impl<R> From<SdkError<GetIndexError, R>> for Error
impl<R> From<SdkError<GetIndexError, R>> for Error
source§fn from(err: SdkError<GetIndexError, R>) -> Self
fn from(err: SdkError<GetIndexError, R>) -> Self
source§impl<R> From<SdkError<GetViewError, R>> for Error
impl<R> From<SdkError<GetViewError, R>> for Error
source§fn from(err: SdkError<GetViewError, R>) -> Self
fn from(err: SdkError<GetViewError, R>) -> Self
source§impl<R> From<SdkError<ListIndexesError, R>> for Error
impl<R> From<SdkError<ListIndexesError, R>> for Error
source§fn from(err: SdkError<ListIndexesError, R>) -> Self
fn from(err: SdkError<ListIndexesError, R>) -> Self
source§impl<R> From<SdkError<ListIndexesForMembersError, R>> for Error
impl<R> From<SdkError<ListIndexesForMembersError, R>> for Error
source§fn from(err: SdkError<ListIndexesForMembersError, R>) -> Self
fn from(err: SdkError<ListIndexesForMembersError, R>) -> Self
source§impl<R> From<SdkError<ListSupportedResourceTypesError, R>> for Error
impl<R> From<SdkError<ListSupportedResourceTypesError, R>> for Error
source§fn from(err: SdkError<ListSupportedResourceTypesError, R>) -> Self
fn from(err: SdkError<ListSupportedResourceTypesError, 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<ListViewsError, R>> for Error
impl<R> From<SdkError<ListViewsError, R>> for Error
source§fn from(err: SdkError<ListViewsError, R>) -> Self
fn from(err: SdkError<ListViewsError, R>) -> Self
source§impl<R> From<SdkError<SearchError, R>> for Error
impl<R> From<SdkError<SearchError, R>> for Error
source§fn from(err: SdkError<SearchError, R>) -> Self
fn from(err: SdkError<SearchError, 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<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<UpdateIndexTypeError, R>> for Error
impl<R> From<SdkError<UpdateIndexTypeError, R>> for Error
source§fn from(err: SdkError<UpdateIndexTypeError, R>) -> Self
fn from(err: SdkError<UpdateIndexTypeError, R>) -> Self
source§impl<R> From<SdkError<UpdateViewError, R>> for Error
impl<R> From<SdkError<UpdateViewError, R>> for Error
source§fn from(err: SdkError<UpdateViewError, R>) -> Self
fn from(err: SdkError<UpdateViewError, R>) -> Self
source§impl From<SearchError> for Error
impl From<SearchError> for Error
source§fn from(err: SearchError) -> Self
fn from(err: SearchError) -> 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<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
source§impl From<UpdateIndexTypeError> for Error
impl From<UpdateIndexTypeError> for Error
source§fn from(err: UpdateIndexTypeError) -> Self
fn from(err: UpdateIndexTypeError) -> Self
source§impl From<UpdateViewError> for Error
impl From<UpdateViewError> for Error
source§fn from(err: UpdateViewError) -> Self
fn from(err: UpdateViewError) -> 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