Enum aws_sdk_migrationhub::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
DryRunOperation(DryRunOperation),
HomeRegionNotSetException(HomeRegionNotSetException),
InternalServerError(InternalServerError),
InvalidInputException(InvalidInputException),
PolicyErrorException(PolicyErrorException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceUnavailableException(ServiceUnavailableException),
ThrottlingException(ThrottlingException),
UnauthorizedOperation(UnauthorizedOperation),
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.
DryRunOperation(DryRunOperation)
Exception raised to indicate a successfully authorized action when the DryRun
flag is set to "true".
HomeRegionNotSetException(HomeRegionNotSetException)
The home region is not set. Set the home region to continue.
InternalServerError(InternalServerError)
Exception raised when an internal, configuration, or dependency error is encountered.
InvalidInputException(InvalidInputException)
Exception raised when the provided input violates a policy constraint or is entered in the wrong format or data type.
PolicyErrorException(PolicyErrorException)
Exception raised when there are problems accessing Application Discovery Service (Application Discovery Service); most likely due to a misconfigured policy or the migrationhub-discovery
role is missing or not configured correctly.
ResourceNotFoundException(ResourceNotFoundException)
Exception raised when the request references a resource (Application Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application Discovery Service (Application Discovery Service) or in Migration Hub's repository.
Exception raised when there is an internal, configuration, or dependency error encountered.
ThrottlingException(ThrottlingException)
The request was denied due to request throttling.
Exception raised to indicate a request was not authorized when the DryRun
flag is set to "true".
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<AssociateCreatedArtifactError> for Error
impl From<AssociateCreatedArtifactError> for Error
source§fn from(err: AssociateCreatedArtifactError) -> Self
fn from(err: AssociateCreatedArtifactError) -> Self
source§impl From<AssociateDiscoveredResourceError> for Error
impl From<AssociateDiscoveredResourceError> for Error
source§fn from(err: AssociateDiscoveredResourceError) -> Self
fn from(err: AssociateDiscoveredResourceError) -> 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<CreateProgressUpdateStreamError> for Error
impl From<CreateProgressUpdateStreamError> for Error
source§fn from(err: CreateProgressUpdateStreamError) -> Self
fn from(err: CreateProgressUpdateStreamError) -> Self
source§impl From<DeleteProgressUpdateStreamError> for Error
impl From<DeleteProgressUpdateStreamError> for Error
source§fn from(err: DeleteProgressUpdateStreamError) -> Self
fn from(err: DeleteProgressUpdateStreamError) -> Self
source§impl From<DescribeApplicationStateError> for Error
impl From<DescribeApplicationStateError> for Error
source§fn from(err: DescribeApplicationStateError) -> Self
fn from(err: DescribeApplicationStateError) -> Self
source§impl From<DescribeMigrationTaskError> for Error
impl From<DescribeMigrationTaskError> for Error
source§fn from(err: DescribeMigrationTaskError) -> Self
fn from(err: DescribeMigrationTaskError) -> Self
source§impl From<DisassociateCreatedArtifactError> for Error
impl From<DisassociateCreatedArtifactError> for Error
source§fn from(err: DisassociateCreatedArtifactError) -> Self
fn from(err: DisassociateCreatedArtifactError) -> Self
source§impl From<DisassociateDiscoveredResourceError> for Error
impl From<DisassociateDiscoveredResourceError> for Error
source§fn from(err: DisassociateDiscoveredResourceError) -> Self
fn from(err: DisassociateDiscoveredResourceError) -> Self
source§impl From<ImportMigrationTaskError> for Error
impl From<ImportMigrationTaskError> for Error
source§fn from(err: ImportMigrationTaskError) -> Self
fn from(err: ImportMigrationTaskError) -> Self
source§impl From<ListApplicationStatesError> for Error
impl From<ListApplicationStatesError> for Error
source§fn from(err: ListApplicationStatesError) -> Self
fn from(err: ListApplicationStatesError) -> Self
source§impl From<ListCreatedArtifactsError> for Error
impl From<ListCreatedArtifactsError> for Error
source§fn from(err: ListCreatedArtifactsError) -> Self
fn from(err: ListCreatedArtifactsError) -> Self
source§impl From<ListDiscoveredResourcesError> for Error
impl From<ListDiscoveredResourcesError> for Error
source§fn from(err: ListDiscoveredResourcesError) -> Self
fn from(err: ListDiscoveredResourcesError) -> Self
source§impl From<ListMigrationTasksError> for Error
impl From<ListMigrationTasksError> for Error
source§fn from(err: ListMigrationTasksError) -> Self
fn from(err: ListMigrationTasksError) -> Self
source§impl From<ListProgressUpdateStreamsError> for Error
impl From<ListProgressUpdateStreamsError> for Error
source§fn from(err: ListProgressUpdateStreamsError) -> Self
fn from(err: ListProgressUpdateStreamsError) -> Self
source§impl From<NotifyApplicationStateError> for Error
impl From<NotifyApplicationStateError> for Error
source§fn from(err: NotifyApplicationStateError) -> Self
fn from(err: NotifyApplicationStateError) -> Self
source§impl From<NotifyMigrationTaskStateError> for Error
impl From<NotifyMigrationTaskStateError> for Error
source§fn from(err: NotifyMigrationTaskStateError) -> Self
fn from(err: NotifyMigrationTaskStateError) -> Self
source§impl From<PutResourceAttributesError> for Error
impl From<PutResourceAttributesError> for Error
source§fn from(err: PutResourceAttributesError) -> Self
fn from(err: PutResourceAttributesError) -> Self
source§impl<R> From<SdkError<AssociateCreatedArtifactError, R>> for Error
impl<R> From<SdkError<AssociateCreatedArtifactError, R>> for Error
source§fn from(err: SdkError<AssociateCreatedArtifactError, R>) -> Self
fn from(err: SdkError<AssociateCreatedArtifactError, R>) -> Self
source§impl<R> From<SdkError<AssociateDiscoveredResourceError, R>> for Error
impl<R> From<SdkError<AssociateDiscoveredResourceError, R>> for Error
source§fn from(err: SdkError<AssociateDiscoveredResourceError, R>) -> Self
fn from(err: SdkError<AssociateDiscoveredResourceError, R>) -> Self
source§impl<R> From<SdkError<CreateProgressUpdateStreamError, R>> for Error
impl<R> From<SdkError<CreateProgressUpdateStreamError, R>> for Error
source§fn from(err: SdkError<CreateProgressUpdateStreamError, R>) -> Self
fn from(err: SdkError<CreateProgressUpdateStreamError, R>) -> Self
source§impl<R> From<SdkError<DeleteProgressUpdateStreamError, R>> for Error
impl<R> From<SdkError<DeleteProgressUpdateStreamError, R>> for Error
source§fn from(err: SdkError<DeleteProgressUpdateStreamError, R>) -> Self
fn from(err: SdkError<DeleteProgressUpdateStreamError, R>) -> Self
source§impl<R> From<SdkError<DescribeApplicationStateError, R>> for Error
impl<R> From<SdkError<DescribeApplicationStateError, R>> for Error
source§fn from(err: SdkError<DescribeApplicationStateError, R>) -> Self
fn from(err: SdkError<DescribeApplicationStateError, R>) -> Self
source§impl<R> From<SdkError<DescribeMigrationTaskError, R>> for Error
impl<R> From<SdkError<DescribeMigrationTaskError, R>> for Error
source§fn from(err: SdkError<DescribeMigrationTaskError, R>) -> Self
fn from(err: SdkError<DescribeMigrationTaskError, R>) -> Self
source§impl<R> From<SdkError<DisassociateCreatedArtifactError, R>> for Error
impl<R> From<SdkError<DisassociateCreatedArtifactError, R>> for Error
source§fn from(err: SdkError<DisassociateCreatedArtifactError, R>) -> Self
fn from(err: SdkError<DisassociateCreatedArtifactError, R>) -> Self
source§impl<R> From<SdkError<DisassociateDiscoveredResourceError, R>> for Error
impl<R> From<SdkError<DisassociateDiscoveredResourceError, R>> for Error
source§fn from(err: SdkError<DisassociateDiscoveredResourceError, R>) -> Self
fn from(err: SdkError<DisassociateDiscoveredResourceError, R>) -> Self
source§impl<R> From<SdkError<ImportMigrationTaskError, R>> for Error
impl<R> From<SdkError<ImportMigrationTaskError, R>> for Error
source§fn from(err: SdkError<ImportMigrationTaskError, R>) -> Self
fn from(err: SdkError<ImportMigrationTaskError, R>) -> Self
source§impl<R> From<SdkError<ListApplicationStatesError, R>> for Error
impl<R> From<SdkError<ListApplicationStatesError, R>> for Error
source§fn from(err: SdkError<ListApplicationStatesError, R>) -> Self
fn from(err: SdkError<ListApplicationStatesError, R>) -> Self
source§impl<R> From<SdkError<ListCreatedArtifactsError, R>> for Error
impl<R> From<SdkError<ListCreatedArtifactsError, R>> for Error
source§fn from(err: SdkError<ListCreatedArtifactsError, R>) -> Self
fn from(err: SdkError<ListCreatedArtifactsError, R>) -> Self
source§impl<R> From<SdkError<ListDiscoveredResourcesError, R>> for Error
impl<R> From<SdkError<ListDiscoveredResourcesError, R>> for Error
source§fn from(err: SdkError<ListDiscoveredResourcesError, R>) -> Self
fn from(err: SdkError<ListDiscoveredResourcesError, R>) -> Self
source§impl<R> From<SdkError<ListMigrationTasksError, R>> for Error
impl<R> From<SdkError<ListMigrationTasksError, R>> for Error
source§fn from(err: SdkError<ListMigrationTasksError, R>) -> Self
fn from(err: SdkError<ListMigrationTasksError, R>) -> Self
source§impl<R> From<SdkError<ListProgressUpdateStreamsError, R>> for Error
impl<R> From<SdkError<ListProgressUpdateStreamsError, R>> for Error
source§fn from(err: SdkError<ListProgressUpdateStreamsError, R>) -> Self
fn from(err: SdkError<ListProgressUpdateStreamsError, R>) -> Self
source§impl<R> From<SdkError<NotifyApplicationStateError, R>> for Error
impl<R> From<SdkError<NotifyApplicationStateError, R>> for Error
source§fn from(err: SdkError<NotifyApplicationStateError, R>) -> Self
fn from(err: SdkError<NotifyApplicationStateError, R>) -> Self
source§impl<R> From<SdkError<NotifyMigrationTaskStateError, R>> for Error
impl<R> From<SdkError<NotifyMigrationTaskStateError, R>> for Error
source§fn from(err: SdkError<NotifyMigrationTaskStateError, R>) -> Self
fn from(err: SdkError<NotifyMigrationTaskStateError, R>) -> Self
source§impl<R> From<SdkError<PutResourceAttributesError, R>> for Error
impl<R> From<SdkError<PutResourceAttributesError, R>> for Error
source§fn from(err: SdkError<PutResourceAttributesError, R>) -> Self
fn from(err: SdkError<PutResourceAttributesError, R>) -> 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