Enum aws_sdk_appflow::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
ConflictException(ConflictException),
ConnectorAuthenticationException(ConnectorAuthenticationException),
ConnectorServerException(ConnectorServerException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
ThrottlingException(ThrottlingException),
UnsupportedOperationException(UnsupportedOperationException),
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)
AppFlow/Requester has invalid or missing permissions.
ConflictException(ConflictException)
There was a conflict when processing the request (for example, a flow with the given name already exists within the account. Check for conflicting resource names and try again.
ConnectorAuthenticationException(ConnectorAuthenticationException)
An error occurred when authenticating with the connector endpoint.
ConnectorServerException(ConnectorServerException)
An error occurred when retrieving data from the connector endpoint.
InternalServerException(InternalServerException)
An internal service error occurred during the processing of your request. Try again later.
ResourceNotFoundException(ResourceNotFoundException)
The resource specified in the request (such as the source or destination connector profile) is not found.
ServiceQuotaExceededException(ServiceQuotaExceededException)
The request would cause a service quota (such as the number of flows) to be exceeded.
ThrottlingException(ThrottlingException)
API calls have exceeded the maximum allowed API request rate per account and per Region.
UnsupportedOperationException(UnsupportedOperationException)
The requested operation is not supported for the current flow.
ValidationException(ValidationException)
The request has invalid or missing 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<CancelFlowExecutionsError> for Error
impl From<CancelFlowExecutionsError> for Error
source§fn from(err: CancelFlowExecutionsError) -> Self
fn from(err: CancelFlowExecutionsError) -> Self
source§impl From<CreateConnectorProfileError> for Error
impl From<CreateConnectorProfileError> for Error
source§fn from(err: CreateConnectorProfileError) -> Self
fn from(err: CreateConnectorProfileError) -> Self
source§impl From<CreateFlowError> for Error
impl From<CreateFlowError> for Error
source§fn from(err: CreateFlowError) -> Self
fn from(err: CreateFlowError) -> Self
source§impl From<DeleteConnectorProfileError> for Error
impl From<DeleteConnectorProfileError> for Error
source§fn from(err: DeleteConnectorProfileError) -> Self
fn from(err: DeleteConnectorProfileError) -> Self
source§impl From<DeleteFlowError> for Error
impl From<DeleteFlowError> for Error
source§fn from(err: DeleteFlowError) -> Self
fn from(err: DeleteFlowError) -> Self
source§impl From<DescribeConnectorEntityError> for Error
impl From<DescribeConnectorEntityError> for Error
source§fn from(err: DescribeConnectorEntityError) -> Self
fn from(err: DescribeConnectorEntityError) -> Self
source§impl From<DescribeConnectorError> for Error
impl From<DescribeConnectorError> for Error
source§fn from(err: DescribeConnectorError) -> Self
fn from(err: DescribeConnectorError) -> Self
source§impl From<DescribeConnectorProfilesError> for Error
impl From<DescribeConnectorProfilesError> for Error
source§fn from(err: DescribeConnectorProfilesError) -> Self
fn from(err: DescribeConnectorProfilesError) -> Self
source§impl From<DescribeConnectorsError> for Error
impl From<DescribeConnectorsError> for Error
source§fn from(err: DescribeConnectorsError) -> Self
fn from(err: DescribeConnectorsError) -> Self
source§impl From<DescribeFlowError> for Error
impl From<DescribeFlowError> for Error
source§fn from(err: DescribeFlowError) -> Self
fn from(err: DescribeFlowError) -> Self
source§impl From<DescribeFlowExecutionRecordsError> for Error
impl From<DescribeFlowExecutionRecordsError> for Error
source§fn from(err: DescribeFlowExecutionRecordsError) -> Self
fn from(err: DescribeFlowExecutionRecordsError) -> Self
source§impl From<ListConnectorEntitiesError> for Error
impl From<ListConnectorEntitiesError> for Error
source§fn from(err: ListConnectorEntitiesError) -> Self
fn from(err: ListConnectorEntitiesError) -> Self
source§impl From<ListConnectorsError> for Error
impl From<ListConnectorsError> for Error
source§fn from(err: ListConnectorsError) -> Self
fn from(err: ListConnectorsError) -> Self
source§impl From<ListFlowsError> for Error
impl From<ListFlowsError> for Error
source§fn from(err: ListFlowsError) -> Self
fn from(err: ListFlowsError) -> 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<RegisterConnectorError> for Error
impl From<RegisterConnectorError> for Error
source§fn from(err: RegisterConnectorError) -> Self
fn from(err: RegisterConnectorError) -> Self
source§impl From<ResetConnectorMetadataCacheError> for Error
impl From<ResetConnectorMetadataCacheError> for Error
source§fn from(err: ResetConnectorMetadataCacheError) -> Self
fn from(err: ResetConnectorMetadataCacheError) -> Self
source§impl<R> From<SdkError<CancelFlowExecutionsError, R>> for Error
impl<R> From<SdkError<CancelFlowExecutionsError, R>> for Error
source§fn from(err: SdkError<CancelFlowExecutionsError, R>) -> Self
fn from(err: SdkError<CancelFlowExecutionsError, R>) -> Self
source§impl<R> From<SdkError<CreateConnectorProfileError, R>> for Error
impl<R> From<SdkError<CreateConnectorProfileError, R>> for Error
source§fn from(err: SdkError<CreateConnectorProfileError, R>) -> Self
fn from(err: SdkError<CreateConnectorProfileError, R>) -> Self
source§impl<R> From<SdkError<CreateFlowError, R>> for Error
impl<R> From<SdkError<CreateFlowError, R>> for Error
source§fn from(err: SdkError<CreateFlowError, R>) -> Self
fn from(err: SdkError<CreateFlowError, R>) -> Self
source§impl<R> From<SdkError<DeleteConnectorProfileError, R>> for Error
impl<R> From<SdkError<DeleteConnectorProfileError, R>> for Error
source§fn from(err: SdkError<DeleteConnectorProfileError, R>) -> Self
fn from(err: SdkError<DeleteConnectorProfileError, R>) -> Self
source§impl<R> From<SdkError<DeleteFlowError, R>> for Error
impl<R> From<SdkError<DeleteFlowError, R>> for Error
source§fn from(err: SdkError<DeleteFlowError, R>) -> Self
fn from(err: SdkError<DeleteFlowError, R>) -> Self
source§impl<R> From<SdkError<DescribeConnectorEntityError, R>> for Error
impl<R> From<SdkError<DescribeConnectorEntityError, R>> for Error
source§fn from(err: SdkError<DescribeConnectorEntityError, R>) -> Self
fn from(err: SdkError<DescribeConnectorEntityError, R>) -> Self
source§impl<R> From<SdkError<DescribeConnectorError, R>> for Error
impl<R> From<SdkError<DescribeConnectorError, R>> for Error
source§fn from(err: SdkError<DescribeConnectorError, R>) -> Self
fn from(err: SdkError<DescribeConnectorError, R>) -> Self
source§impl<R> From<SdkError<DescribeConnectorProfilesError, R>> for Error
impl<R> From<SdkError<DescribeConnectorProfilesError, R>> for Error
source§fn from(err: SdkError<DescribeConnectorProfilesError, R>) -> Self
fn from(err: SdkError<DescribeConnectorProfilesError, R>) -> Self
source§impl<R> From<SdkError<DescribeConnectorsError, R>> for Error
impl<R> From<SdkError<DescribeConnectorsError, R>> for Error
source§fn from(err: SdkError<DescribeConnectorsError, R>) -> Self
fn from(err: SdkError<DescribeConnectorsError, R>) -> Self
source§impl<R> From<SdkError<DescribeFlowError, R>> for Error
impl<R> From<SdkError<DescribeFlowError, R>> for Error
source§fn from(err: SdkError<DescribeFlowError, R>) -> Self
fn from(err: SdkError<DescribeFlowError, R>) -> Self
source§impl<R> From<SdkError<DescribeFlowExecutionRecordsError, R>> for Error
impl<R> From<SdkError<DescribeFlowExecutionRecordsError, R>> for Error
source§fn from(err: SdkError<DescribeFlowExecutionRecordsError, R>) -> Self
fn from(err: SdkError<DescribeFlowExecutionRecordsError, R>) -> Self
source§impl<R> From<SdkError<ListConnectorEntitiesError, R>> for Error
impl<R> From<SdkError<ListConnectorEntitiesError, R>> for Error
source§fn from(err: SdkError<ListConnectorEntitiesError, R>) -> Self
fn from(err: SdkError<ListConnectorEntitiesError, R>) -> Self
source§impl<R> From<SdkError<ListConnectorsError, R>> for Error
impl<R> From<SdkError<ListConnectorsError, R>> for Error
source§fn from(err: SdkError<ListConnectorsError, R>) -> Self
fn from(err: SdkError<ListConnectorsError, R>) -> Self
source§impl<R> From<SdkError<ListFlowsError, R>> for Error
impl<R> From<SdkError<ListFlowsError, R>> for Error
source§fn from(err: SdkError<ListFlowsError, R>) -> Self
fn from(err: SdkError<ListFlowsError, 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<RegisterConnectorError, R>> for Error
impl<R> From<SdkError<RegisterConnectorError, R>> for Error
source§fn from(err: SdkError<RegisterConnectorError, R>) -> Self
fn from(err: SdkError<RegisterConnectorError, R>) -> Self
source§impl<R> From<SdkError<ResetConnectorMetadataCacheError, R>> for Error
impl<R> From<SdkError<ResetConnectorMetadataCacheError, R>> for Error
source§fn from(err: SdkError<ResetConnectorMetadataCacheError, R>) -> Self
fn from(err: SdkError<ResetConnectorMetadataCacheError, R>) -> Self
source§impl<R> From<SdkError<StartFlowError, R>> for Error
impl<R> From<SdkError<StartFlowError, R>> for Error
source§fn from(err: SdkError<StartFlowError, R>) -> Self
fn from(err: SdkError<StartFlowError, R>) -> Self
source§impl<R> From<SdkError<StopFlowError, R>> for Error
impl<R> From<SdkError<StopFlowError, R>> for Error
source§fn from(err: SdkError<StopFlowError, R>) -> Self
fn from(err: SdkError<StopFlowError, 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<UnregisterConnectorError, R>> for Error
impl<R> From<SdkError<UnregisterConnectorError, R>> for Error
source§fn from(err: SdkError<UnregisterConnectorError, R>) -> Self
fn from(err: SdkError<UnregisterConnectorError, 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<UpdateConnectorProfileError, R>> for Error
impl<R> From<SdkError<UpdateConnectorProfileError, R>> for Error
source§fn from(err: SdkError<UpdateConnectorProfileError, R>) -> Self
fn from(err: SdkError<UpdateConnectorProfileError, R>) -> Self
source§impl<R> From<SdkError<UpdateConnectorRegistrationError, R>> for Error
impl<R> From<SdkError<UpdateConnectorRegistrationError, R>> for Error
source§fn from(err: SdkError<UpdateConnectorRegistrationError, R>) -> Self
fn from(err: SdkError<UpdateConnectorRegistrationError, R>) -> Self
source§impl<R> From<SdkError<UpdateFlowError, R>> for Error
impl<R> From<SdkError<UpdateFlowError, R>> for Error
source§fn from(err: SdkError<UpdateFlowError, R>) -> Self
fn from(err: SdkError<UpdateFlowError, R>) -> Self
source§impl From<StartFlowError> for Error
impl From<StartFlowError> for Error
source§fn from(err: StartFlowError) -> Self
fn from(err: StartFlowError) -> Self
source§impl From<StopFlowError> for Error
impl From<StopFlowError> for Error
source§fn from(err: StopFlowError) -> Self
fn from(err: StopFlowError) -> 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<UnregisterConnectorError> for Error
impl From<UnregisterConnectorError> for Error
source§fn from(err: UnregisterConnectorError) -> Self
fn from(err: UnregisterConnectorError) -> 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<UpdateConnectorProfileError> for Error
impl From<UpdateConnectorProfileError> for Error
source§fn from(err: UpdateConnectorProfileError) -> Self
fn from(err: UpdateConnectorProfileError) -> Self
source§impl From<UpdateConnectorRegistrationError> for Error
impl From<UpdateConnectorRegistrationError> for Error
source§fn from(err: UpdateConnectorRegistrationError) -> Self
fn from(err: UpdateConnectorRegistrationError) -> Self
source§impl From<UpdateFlowError> for Error
impl From<UpdateFlowError> for Error
source§fn from(err: UpdateFlowError) -> Self
fn from(err: UpdateFlowError) -> 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