Enum aws_sdk_greengrassv2::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
ConflictException(ConflictException),
InternalServerException(InternalServerException),
RequestAlreadyInProgressException(RequestAlreadyInProgressException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
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
AccessDeniedException(AccessDeniedException)
You don't have permission to perform the action.
ConflictException(ConflictException)
Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.
InternalServerException(InternalServerException)
IoT Greengrass can't process your request right now. Try again later.
RequestAlreadyInProgressException(RequestAlreadyInProgressException)
The request is already in progress. This exception occurs when you use a client token for multiple requests while IoT Greengrass is still processing an earlier request that uses the same client token.
ResourceNotFoundException(ResourceNotFoundException)
The requested resource can't be found.
ServiceQuotaExceededException(ServiceQuotaExceededException)
Your request exceeds a service quota. For example, you might have the maximum number of components that you can create.
ThrottlingException(ThrottlingException)
Your request exceeded a request rate quota. For example, you might have exceeded the amount of times that you can retrieve device or deployment status per second.
ValidationException(ValidationException)
The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.
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<AssociateServiceRoleToAccountError> for Error
impl From<AssociateServiceRoleToAccountError> for Error
source§fn from(err: AssociateServiceRoleToAccountError) -> Self
fn from(err: AssociateServiceRoleToAccountError) -> Self
source§impl From<BatchAssociateClientDeviceWithCoreDeviceError> for Error
impl From<BatchAssociateClientDeviceWithCoreDeviceError> for Error
source§fn from(err: BatchAssociateClientDeviceWithCoreDeviceError) -> Self
fn from(err: BatchAssociateClientDeviceWithCoreDeviceError) -> Self
source§impl From<BatchDisassociateClientDeviceFromCoreDeviceError> for Error
impl From<BatchDisassociateClientDeviceFromCoreDeviceError> for Error
source§fn from(err: BatchDisassociateClientDeviceFromCoreDeviceError) -> Self
fn from(err: BatchDisassociateClientDeviceFromCoreDeviceError) -> 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<CancelDeploymentError> for Error
impl From<CancelDeploymentError> for Error
source§fn from(err: CancelDeploymentError) -> Self
fn from(err: CancelDeploymentError) -> Self
source§impl From<CreateComponentVersionError> for Error
impl From<CreateComponentVersionError> for Error
source§fn from(err: CreateComponentVersionError) -> Self
fn from(err: CreateComponentVersionError) -> Self
source§impl From<CreateDeploymentError> for Error
impl From<CreateDeploymentError> for Error
source§fn from(err: CreateDeploymentError) -> Self
fn from(err: CreateDeploymentError) -> Self
source§impl From<DeleteComponentError> for Error
impl From<DeleteComponentError> for Error
source§fn from(err: DeleteComponentError) -> Self
fn from(err: DeleteComponentError) -> Self
source§impl From<DeleteCoreDeviceError> for Error
impl From<DeleteCoreDeviceError> for Error
source§fn from(err: DeleteCoreDeviceError) -> Self
fn from(err: DeleteCoreDeviceError) -> Self
source§impl From<DeleteDeploymentError> for Error
impl From<DeleteDeploymentError> for Error
source§fn from(err: DeleteDeploymentError) -> Self
fn from(err: DeleteDeploymentError) -> Self
source§impl From<DescribeComponentError> for Error
impl From<DescribeComponentError> for Error
source§fn from(err: DescribeComponentError) -> Self
fn from(err: DescribeComponentError) -> Self
source§impl From<DisassociateServiceRoleFromAccountError> for Error
impl From<DisassociateServiceRoleFromAccountError> for Error
source§fn from(err: DisassociateServiceRoleFromAccountError) -> Self
fn from(err: DisassociateServiceRoleFromAccountError) -> Self
source§impl From<GetComponentError> for Error
impl From<GetComponentError> for Error
source§fn from(err: GetComponentError) -> Self
fn from(err: GetComponentError) -> Self
source§impl From<GetComponentVersionArtifactError> for Error
impl From<GetComponentVersionArtifactError> for Error
source§fn from(err: GetComponentVersionArtifactError) -> Self
fn from(err: GetComponentVersionArtifactError) -> Self
source§impl From<GetConnectivityInfoError> for Error
impl From<GetConnectivityInfoError> for Error
source§fn from(err: GetConnectivityInfoError) -> Self
fn from(err: GetConnectivityInfoError) -> Self
source§impl From<GetCoreDeviceError> for Error
impl From<GetCoreDeviceError> for Error
source§fn from(err: GetCoreDeviceError) -> Self
fn from(err: GetCoreDeviceError) -> Self
source§impl From<GetDeploymentError> for Error
impl From<GetDeploymentError> for Error
source§fn from(err: GetDeploymentError) -> Self
fn from(err: GetDeploymentError) -> Self
source§impl From<GetServiceRoleForAccountError> for Error
impl From<GetServiceRoleForAccountError> for Error
source§fn from(err: GetServiceRoleForAccountError) -> Self
fn from(err: GetServiceRoleForAccountError) -> Self
source§impl From<ListClientDevicesAssociatedWithCoreDeviceError> for Error
impl From<ListClientDevicesAssociatedWithCoreDeviceError> for Error
source§fn from(err: ListClientDevicesAssociatedWithCoreDeviceError) -> Self
fn from(err: ListClientDevicesAssociatedWithCoreDeviceError) -> Self
source§impl From<ListComponentVersionsError> for Error
impl From<ListComponentVersionsError> for Error
source§fn from(err: ListComponentVersionsError) -> Self
fn from(err: ListComponentVersionsError) -> Self
source§impl From<ListComponentsError> for Error
impl From<ListComponentsError> for Error
source§fn from(err: ListComponentsError) -> Self
fn from(err: ListComponentsError) -> Self
source§impl From<ListCoreDevicesError> for Error
impl From<ListCoreDevicesError> for Error
source§fn from(err: ListCoreDevicesError) -> Self
fn from(err: ListCoreDevicesError) -> Self
source§impl From<ListDeploymentsError> for Error
impl From<ListDeploymentsError> for Error
source§fn from(err: ListDeploymentsError) -> Self
fn from(err: ListDeploymentsError) -> Self
source§impl From<ListEffectiveDeploymentsError> for Error
impl From<ListEffectiveDeploymentsError> for Error
source§fn from(err: ListEffectiveDeploymentsError) -> Self
fn from(err: ListEffectiveDeploymentsError) -> Self
source§impl From<ListInstalledComponentsError> for Error
impl From<ListInstalledComponentsError> for Error
source§fn from(err: ListInstalledComponentsError) -> Self
fn from(err: ListInstalledComponentsError) -> 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<ResolveComponentCandidatesError> for Error
impl From<ResolveComponentCandidatesError> for Error
source§fn from(err: ResolveComponentCandidatesError) -> Self
fn from(err: ResolveComponentCandidatesError) -> Self
source§impl<R> From<SdkError<AssociateServiceRoleToAccountError, R>> for Error
impl<R> From<SdkError<AssociateServiceRoleToAccountError, R>> for Error
source§fn from(err: SdkError<AssociateServiceRoleToAccountError, R>) -> Self
fn from(err: SdkError<AssociateServiceRoleToAccountError, R>) -> Self
source§impl<R> From<SdkError<BatchAssociateClientDeviceWithCoreDeviceError, R>> for Error
impl<R> From<SdkError<BatchAssociateClientDeviceWithCoreDeviceError, R>> for Error
source§fn from(err: SdkError<BatchAssociateClientDeviceWithCoreDeviceError, R>) -> Self
fn from(err: SdkError<BatchAssociateClientDeviceWithCoreDeviceError, R>) -> Self
source§impl<R> From<SdkError<BatchDisassociateClientDeviceFromCoreDeviceError, R>> for Error
impl<R> From<SdkError<BatchDisassociateClientDeviceFromCoreDeviceError, R>> for Error
source§fn from(
err: SdkError<BatchDisassociateClientDeviceFromCoreDeviceError, R>
) -> Self
fn from( err: SdkError<BatchDisassociateClientDeviceFromCoreDeviceError, R> ) -> Self
source§impl<R> From<SdkError<CancelDeploymentError, R>> for Error
impl<R> From<SdkError<CancelDeploymentError, R>> for Error
source§fn from(err: SdkError<CancelDeploymentError, R>) -> Self
fn from(err: SdkError<CancelDeploymentError, R>) -> Self
source§impl<R> From<SdkError<CreateComponentVersionError, R>> for Error
impl<R> From<SdkError<CreateComponentVersionError, R>> for Error
source§fn from(err: SdkError<CreateComponentVersionError, R>) -> Self
fn from(err: SdkError<CreateComponentVersionError, R>) -> Self
source§impl<R> From<SdkError<CreateDeploymentError, R>> for Error
impl<R> From<SdkError<CreateDeploymentError, R>> for Error
source§fn from(err: SdkError<CreateDeploymentError, R>) -> Self
fn from(err: SdkError<CreateDeploymentError, R>) -> Self
source§impl<R> From<SdkError<DeleteComponentError, R>> for Error
impl<R> From<SdkError<DeleteComponentError, R>> for Error
source§fn from(err: SdkError<DeleteComponentError, R>) -> Self
fn from(err: SdkError<DeleteComponentError, R>) -> Self
source§impl<R> From<SdkError<DeleteCoreDeviceError, R>> for Error
impl<R> From<SdkError<DeleteCoreDeviceError, R>> for Error
source§fn from(err: SdkError<DeleteCoreDeviceError, R>) -> Self
fn from(err: SdkError<DeleteCoreDeviceError, R>) -> Self
source§impl<R> From<SdkError<DeleteDeploymentError, R>> for Error
impl<R> From<SdkError<DeleteDeploymentError, R>> for Error
source§fn from(err: SdkError<DeleteDeploymentError, R>) -> Self
fn from(err: SdkError<DeleteDeploymentError, R>) -> Self
source§impl<R> From<SdkError<DescribeComponentError, R>> for Error
impl<R> From<SdkError<DescribeComponentError, R>> for Error
source§fn from(err: SdkError<DescribeComponentError, R>) -> Self
fn from(err: SdkError<DescribeComponentError, R>) -> Self
source§impl<R> From<SdkError<DisassociateServiceRoleFromAccountError, R>> for Error
impl<R> From<SdkError<DisassociateServiceRoleFromAccountError, R>> for Error
source§fn from(err: SdkError<DisassociateServiceRoleFromAccountError, R>) -> Self
fn from(err: SdkError<DisassociateServiceRoleFromAccountError, R>) -> Self
source§impl<R> From<SdkError<GetComponentError, R>> for Error
impl<R> From<SdkError<GetComponentError, R>> for Error
source§fn from(err: SdkError<GetComponentError, R>) -> Self
fn from(err: SdkError<GetComponentError, R>) -> Self
source§impl<R> From<SdkError<GetComponentVersionArtifactError, R>> for Error
impl<R> From<SdkError<GetComponentVersionArtifactError, R>> for Error
source§fn from(err: SdkError<GetComponentVersionArtifactError, R>) -> Self
fn from(err: SdkError<GetComponentVersionArtifactError, R>) -> Self
source§impl<R> From<SdkError<GetConnectivityInfoError, R>> for Error
impl<R> From<SdkError<GetConnectivityInfoError, R>> for Error
source§fn from(err: SdkError<GetConnectivityInfoError, R>) -> Self
fn from(err: SdkError<GetConnectivityInfoError, R>) -> Self
source§impl<R> From<SdkError<GetCoreDeviceError, R>> for Error
impl<R> From<SdkError<GetCoreDeviceError, R>> for Error
source§fn from(err: SdkError<GetCoreDeviceError, R>) -> Self
fn from(err: SdkError<GetCoreDeviceError, R>) -> Self
source§impl<R> From<SdkError<GetDeploymentError, R>> for Error
impl<R> From<SdkError<GetDeploymentError, R>> for Error
source§fn from(err: SdkError<GetDeploymentError, R>) -> Self
fn from(err: SdkError<GetDeploymentError, R>) -> Self
source§impl<R> From<SdkError<GetServiceRoleForAccountError, R>> for Error
impl<R> From<SdkError<GetServiceRoleForAccountError, R>> for Error
source§fn from(err: SdkError<GetServiceRoleForAccountError, R>) -> Self
fn from(err: SdkError<GetServiceRoleForAccountError, R>) -> Self
source§impl<R> From<SdkError<ListClientDevicesAssociatedWithCoreDeviceError, R>> for Error
impl<R> From<SdkError<ListClientDevicesAssociatedWithCoreDeviceError, R>> for Error
source§fn from(
err: SdkError<ListClientDevicesAssociatedWithCoreDeviceError, R>
) -> Self
fn from( err: SdkError<ListClientDevicesAssociatedWithCoreDeviceError, R> ) -> Self
source§impl<R> From<SdkError<ListComponentVersionsError, R>> for Error
impl<R> From<SdkError<ListComponentVersionsError, R>> for Error
source§fn from(err: SdkError<ListComponentVersionsError, R>) -> Self
fn from(err: SdkError<ListComponentVersionsError, R>) -> Self
source§impl<R> From<SdkError<ListComponentsError, R>> for Error
impl<R> From<SdkError<ListComponentsError, R>> for Error
source§fn from(err: SdkError<ListComponentsError, R>) -> Self
fn from(err: SdkError<ListComponentsError, R>) -> Self
source§impl<R> From<SdkError<ListCoreDevicesError, R>> for Error
impl<R> From<SdkError<ListCoreDevicesError, R>> for Error
source§fn from(err: SdkError<ListCoreDevicesError, R>) -> Self
fn from(err: SdkError<ListCoreDevicesError, R>) -> Self
source§impl<R> From<SdkError<ListDeploymentsError, R>> for Error
impl<R> From<SdkError<ListDeploymentsError, R>> for Error
source§fn from(err: SdkError<ListDeploymentsError, R>) -> Self
fn from(err: SdkError<ListDeploymentsError, R>) -> Self
source§impl<R> From<SdkError<ListEffectiveDeploymentsError, R>> for Error
impl<R> From<SdkError<ListEffectiveDeploymentsError, R>> for Error
source§fn from(err: SdkError<ListEffectiveDeploymentsError, R>) -> Self
fn from(err: SdkError<ListEffectiveDeploymentsError, R>) -> Self
source§impl<R> From<SdkError<ListInstalledComponentsError, R>> for Error
impl<R> From<SdkError<ListInstalledComponentsError, R>> for Error
source§fn from(err: SdkError<ListInstalledComponentsError, R>) -> Self
fn from(err: SdkError<ListInstalledComponentsError, 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<ResolveComponentCandidatesError, R>> for Error
impl<R> From<SdkError<ResolveComponentCandidatesError, R>> for Error
source§fn from(err: SdkError<ResolveComponentCandidatesError, R>) -> Self
fn from(err: SdkError<ResolveComponentCandidatesError, 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<UpdateConnectivityInfoError, R>> for Error
impl<R> From<SdkError<UpdateConnectivityInfoError, R>> for Error
source§fn from(err: SdkError<UpdateConnectivityInfoError, R>) -> Self
fn from(err: SdkError<UpdateConnectivityInfoError, R>) -> 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<UpdateConnectivityInfoError> for Error
impl From<UpdateConnectivityInfoError> for Error
source§fn from(err: UpdateConnectivityInfoError) -> Self
fn from(err: UpdateConnectivityInfoError) -> 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