Enum aws_sdk_cloudsearch::Error
source · #[non_exhaustive]pub enum Error {
BaseException(BaseException),
DisabledOperationException(DisabledOperationException),
InternalException(InternalException),
InvalidTypeException(InvalidTypeException),
LimitExceededException(LimitExceededException),
ResourceAlreadyExistsException(ResourceAlreadyExistsException),
ResourceNotFoundException(ResourceNotFoundException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BaseException(BaseException)
An error occurred while processing the request.
DisabledOperationException(DisabledOperationException)
The request was rejected because it attempted an operation which is not enabled.
InternalException(InternalException)
An internal error occurred while processing the request. If this problem persists, report an issue from the Service Health Dashboard.
InvalidTypeException(InvalidTypeException)
The request was rejected because it specified an invalid type definition.
LimitExceededException(LimitExceededException)
The request was rejected because a resource limit has already been met.
ResourceAlreadyExistsException(ResourceAlreadyExistsException)
The request was rejected because it attempted to create a resource that already exists.
ResourceNotFoundException(ResourceNotFoundException)
The request was rejected because it attempted to reference a resource that does not exist.
ValidationException(ValidationException)
The request was rejected because it has invalid parameters.
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<BuildSuggestersError> for Error
impl From<BuildSuggestersError> for Error
source§fn from(err: BuildSuggestersError) -> Self
fn from(err: BuildSuggestersError) -> Self
source§impl From<CreateDomainError> for Error
impl From<CreateDomainError> for Error
source§fn from(err: CreateDomainError) -> Self
fn from(err: CreateDomainError) -> Self
source§impl From<DefineAnalysisSchemeError> for Error
impl From<DefineAnalysisSchemeError> for Error
source§fn from(err: DefineAnalysisSchemeError) -> Self
fn from(err: DefineAnalysisSchemeError) -> Self
source§impl From<DefineExpressionError> for Error
impl From<DefineExpressionError> for Error
source§fn from(err: DefineExpressionError) -> Self
fn from(err: DefineExpressionError) -> Self
source§impl From<DefineIndexFieldError> for Error
impl From<DefineIndexFieldError> for Error
source§fn from(err: DefineIndexFieldError) -> Self
fn from(err: DefineIndexFieldError) -> Self
source§impl From<DefineSuggesterError> for Error
impl From<DefineSuggesterError> for Error
source§fn from(err: DefineSuggesterError) -> Self
fn from(err: DefineSuggesterError) -> Self
source§impl From<DeleteAnalysisSchemeError> for Error
impl From<DeleteAnalysisSchemeError> for Error
source§fn from(err: DeleteAnalysisSchemeError) -> Self
fn from(err: DeleteAnalysisSchemeError) -> Self
source§impl From<DeleteDomainError> for Error
impl From<DeleteDomainError> for Error
source§fn from(err: DeleteDomainError) -> Self
fn from(err: DeleteDomainError) -> Self
source§impl From<DeleteExpressionError> for Error
impl From<DeleteExpressionError> for Error
source§fn from(err: DeleteExpressionError) -> Self
fn from(err: DeleteExpressionError) -> Self
source§impl From<DeleteIndexFieldError> for Error
impl From<DeleteIndexFieldError> for Error
source§fn from(err: DeleteIndexFieldError) -> Self
fn from(err: DeleteIndexFieldError) -> Self
source§impl From<DeleteSuggesterError> for Error
impl From<DeleteSuggesterError> for Error
source§fn from(err: DeleteSuggesterError) -> Self
fn from(err: DeleteSuggesterError) -> Self
source§impl From<DescribeAnalysisSchemesError> for Error
impl From<DescribeAnalysisSchemesError> for Error
source§fn from(err: DescribeAnalysisSchemesError) -> Self
fn from(err: DescribeAnalysisSchemesError) -> Self
source§impl From<DescribeAvailabilityOptionsError> for Error
impl From<DescribeAvailabilityOptionsError> for Error
source§fn from(err: DescribeAvailabilityOptionsError) -> Self
fn from(err: DescribeAvailabilityOptionsError) -> Self
source§impl From<DescribeDomainEndpointOptionsError> for Error
impl From<DescribeDomainEndpointOptionsError> for Error
source§fn from(err: DescribeDomainEndpointOptionsError) -> Self
fn from(err: DescribeDomainEndpointOptionsError) -> Self
source§impl From<DescribeDomainsError> for Error
impl From<DescribeDomainsError> for Error
source§fn from(err: DescribeDomainsError) -> Self
fn from(err: DescribeDomainsError) -> Self
source§impl From<DescribeExpressionsError> for Error
impl From<DescribeExpressionsError> for Error
source§fn from(err: DescribeExpressionsError) -> Self
fn from(err: DescribeExpressionsError) -> Self
source§impl From<DescribeIndexFieldsError> for Error
impl From<DescribeIndexFieldsError> for Error
source§fn from(err: DescribeIndexFieldsError) -> Self
fn from(err: DescribeIndexFieldsError) -> Self
source§impl From<DescribeScalingParametersError> for Error
impl From<DescribeScalingParametersError> for Error
source§fn from(err: DescribeScalingParametersError) -> Self
fn from(err: DescribeScalingParametersError) -> Self
source§impl From<DescribeServiceAccessPoliciesError> for Error
impl From<DescribeServiceAccessPoliciesError> for Error
source§fn from(err: DescribeServiceAccessPoliciesError) -> Self
fn from(err: DescribeServiceAccessPoliciesError) -> Self
source§impl From<DescribeSuggestersError> for Error
impl From<DescribeSuggestersError> for Error
source§fn from(err: DescribeSuggestersError) -> Self
fn from(err: DescribeSuggestersError) -> Self
source§impl From<IndexDocumentsError> for Error
impl From<IndexDocumentsError> for Error
source§fn from(err: IndexDocumentsError) -> Self
fn from(err: IndexDocumentsError) -> Self
source§impl From<ListDomainNamesError> for Error
impl From<ListDomainNamesError> for Error
source§fn from(err: ListDomainNamesError) -> Self
fn from(err: ListDomainNamesError) -> Self
source§impl<R> From<SdkError<BuildSuggestersError, R>> for Error
impl<R> From<SdkError<BuildSuggestersError, R>> for Error
source§fn from(err: SdkError<BuildSuggestersError, R>) -> Self
fn from(err: SdkError<BuildSuggestersError, R>) -> Self
source§impl<R> From<SdkError<CreateDomainError, R>> for Error
impl<R> From<SdkError<CreateDomainError, R>> for Error
source§fn from(err: SdkError<CreateDomainError, R>) -> Self
fn from(err: SdkError<CreateDomainError, R>) -> Self
source§impl<R> From<SdkError<DefineAnalysisSchemeError, R>> for Error
impl<R> From<SdkError<DefineAnalysisSchemeError, R>> for Error
source§fn from(err: SdkError<DefineAnalysisSchemeError, R>) -> Self
fn from(err: SdkError<DefineAnalysisSchemeError, R>) -> Self
source§impl<R> From<SdkError<DefineExpressionError, R>> for Error
impl<R> From<SdkError<DefineExpressionError, R>> for Error
source§fn from(err: SdkError<DefineExpressionError, R>) -> Self
fn from(err: SdkError<DefineExpressionError, R>) -> Self
source§impl<R> From<SdkError<DefineIndexFieldError, R>> for Error
impl<R> From<SdkError<DefineIndexFieldError, R>> for Error
source§fn from(err: SdkError<DefineIndexFieldError, R>) -> Self
fn from(err: SdkError<DefineIndexFieldError, R>) -> Self
source§impl<R> From<SdkError<DefineSuggesterError, R>> for Error
impl<R> From<SdkError<DefineSuggesterError, R>> for Error
source§fn from(err: SdkError<DefineSuggesterError, R>) -> Self
fn from(err: SdkError<DefineSuggesterError, R>) -> Self
source§impl<R> From<SdkError<DeleteAnalysisSchemeError, R>> for Error
impl<R> From<SdkError<DeleteAnalysisSchemeError, R>> for Error
source§fn from(err: SdkError<DeleteAnalysisSchemeError, R>) -> Self
fn from(err: SdkError<DeleteAnalysisSchemeError, R>) -> Self
source§impl<R> From<SdkError<DeleteDomainError, R>> for Error
impl<R> From<SdkError<DeleteDomainError, R>> for Error
source§fn from(err: SdkError<DeleteDomainError, R>) -> Self
fn from(err: SdkError<DeleteDomainError, R>) -> Self
source§impl<R> From<SdkError<DeleteExpressionError, R>> for Error
impl<R> From<SdkError<DeleteExpressionError, R>> for Error
source§fn from(err: SdkError<DeleteExpressionError, R>) -> Self
fn from(err: SdkError<DeleteExpressionError, R>) -> Self
source§impl<R> From<SdkError<DeleteIndexFieldError, R>> for Error
impl<R> From<SdkError<DeleteIndexFieldError, R>> for Error
source§fn from(err: SdkError<DeleteIndexFieldError, R>) -> Self
fn from(err: SdkError<DeleteIndexFieldError, R>) -> Self
source§impl<R> From<SdkError<DeleteSuggesterError, R>> for Error
impl<R> From<SdkError<DeleteSuggesterError, R>> for Error
source§fn from(err: SdkError<DeleteSuggesterError, R>) -> Self
fn from(err: SdkError<DeleteSuggesterError, R>) -> Self
source§impl<R> From<SdkError<DescribeAnalysisSchemesError, R>> for Error
impl<R> From<SdkError<DescribeAnalysisSchemesError, R>> for Error
source§fn from(err: SdkError<DescribeAnalysisSchemesError, R>) -> Self
fn from(err: SdkError<DescribeAnalysisSchemesError, R>) -> Self
source§impl<R> From<SdkError<DescribeAvailabilityOptionsError, R>> for Error
impl<R> From<SdkError<DescribeAvailabilityOptionsError, R>> for Error
source§fn from(err: SdkError<DescribeAvailabilityOptionsError, R>) -> Self
fn from(err: SdkError<DescribeAvailabilityOptionsError, R>) -> Self
source§impl<R> From<SdkError<DescribeDomainEndpointOptionsError, R>> for Error
impl<R> From<SdkError<DescribeDomainEndpointOptionsError, R>> for Error
source§fn from(err: SdkError<DescribeDomainEndpointOptionsError, R>) -> Self
fn from(err: SdkError<DescribeDomainEndpointOptionsError, R>) -> Self
source§impl<R> From<SdkError<DescribeDomainsError, R>> for Error
impl<R> From<SdkError<DescribeDomainsError, R>> for Error
source§fn from(err: SdkError<DescribeDomainsError, R>) -> Self
fn from(err: SdkError<DescribeDomainsError, R>) -> Self
source§impl<R> From<SdkError<DescribeExpressionsError, R>> for Error
impl<R> From<SdkError<DescribeExpressionsError, R>> for Error
source§fn from(err: SdkError<DescribeExpressionsError, R>) -> Self
fn from(err: SdkError<DescribeExpressionsError, R>) -> Self
source§impl<R> From<SdkError<DescribeIndexFieldsError, R>> for Error
impl<R> From<SdkError<DescribeIndexFieldsError, R>> for Error
source§fn from(err: SdkError<DescribeIndexFieldsError, R>) -> Self
fn from(err: SdkError<DescribeIndexFieldsError, R>) -> Self
source§impl<R> From<SdkError<DescribeScalingParametersError, R>> for Error
impl<R> From<SdkError<DescribeScalingParametersError, R>> for Error
source§fn from(err: SdkError<DescribeScalingParametersError, R>) -> Self
fn from(err: SdkError<DescribeScalingParametersError, R>) -> Self
source§impl<R> From<SdkError<DescribeServiceAccessPoliciesError, R>> for Error
impl<R> From<SdkError<DescribeServiceAccessPoliciesError, R>> for Error
source§fn from(err: SdkError<DescribeServiceAccessPoliciesError, R>) -> Self
fn from(err: SdkError<DescribeServiceAccessPoliciesError, R>) -> Self
source§impl<R> From<SdkError<DescribeSuggestersError, R>> for Error
impl<R> From<SdkError<DescribeSuggestersError, R>> for Error
source§fn from(err: SdkError<DescribeSuggestersError, R>) -> Self
fn from(err: SdkError<DescribeSuggestersError, R>) -> Self
source§impl<R> From<SdkError<IndexDocumentsError, R>> for Error
impl<R> From<SdkError<IndexDocumentsError, R>> for Error
source§fn from(err: SdkError<IndexDocumentsError, R>) -> Self
fn from(err: SdkError<IndexDocumentsError, R>) -> Self
source§impl<R> From<SdkError<ListDomainNamesError, R>> for Error
impl<R> From<SdkError<ListDomainNamesError, R>> for Error
source§fn from(err: SdkError<ListDomainNamesError, R>) -> Self
fn from(err: SdkError<ListDomainNamesError, R>) -> Self
source§impl<R> From<SdkError<UpdateAvailabilityOptionsError, R>> for Error
impl<R> From<SdkError<UpdateAvailabilityOptionsError, R>> for Error
source§fn from(err: SdkError<UpdateAvailabilityOptionsError, R>) -> Self
fn from(err: SdkError<UpdateAvailabilityOptionsError, R>) -> Self
source§impl<R> From<SdkError<UpdateDomainEndpointOptionsError, R>> for Error
impl<R> From<SdkError<UpdateDomainEndpointOptionsError, R>> for Error
source§fn from(err: SdkError<UpdateDomainEndpointOptionsError, R>) -> Self
fn from(err: SdkError<UpdateDomainEndpointOptionsError, R>) -> Self
source§impl<R> From<SdkError<UpdateScalingParametersError, R>> for Error
impl<R> From<SdkError<UpdateScalingParametersError, R>> for Error
source§fn from(err: SdkError<UpdateScalingParametersError, R>) -> Self
fn from(err: SdkError<UpdateScalingParametersError, R>) -> Self
source§impl<R> From<SdkError<UpdateServiceAccessPoliciesError, R>> for Error
impl<R> From<SdkError<UpdateServiceAccessPoliciesError, R>> for Error
source§fn from(err: SdkError<UpdateServiceAccessPoliciesError, R>) -> Self
fn from(err: SdkError<UpdateServiceAccessPoliciesError, R>) -> Self
source§impl From<UpdateAvailabilityOptionsError> for Error
impl From<UpdateAvailabilityOptionsError> for Error
source§fn from(err: UpdateAvailabilityOptionsError) -> Self
fn from(err: UpdateAvailabilityOptionsError) -> Self
source§impl From<UpdateDomainEndpointOptionsError> for Error
impl From<UpdateDomainEndpointOptionsError> for Error
source§fn from(err: UpdateDomainEndpointOptionsError) -> Self
fn from(err: UpdateDomainEndpointOptionsError) -> Self
source§impl From<UpdateScalingParametersError> for Error
impl From<UpdateScalingParametersError> for Error
source§fn from(err: UpdateScalingParametersError) -> Self
fn from(err: UpdateScalingParametersError) -> Self
source§impl From<UpdateServiceAccessPoliciesError> for Error
impl From<UpdateServiceAccessPoliciesError> for Error
source§fn from(err: UpdateServiceAccessPoliciesError) -> Self
fn from(err: UpdateServiceAccessPoliciesError) -> 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