Enum aws_sdk_iotjobsdataplane::Error
source · #[non_exhaustive]pub enum Error {
CertificateValidationException(CertificateValidationException),
InvalidRequestException(InvalidRequestException),
InvalidStateTransitionException(InvalidStateTransitionException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceUnavailableException(ServiceUnavailableException),
TerminalStateException(TerminalStateException),
ThrottlingException(ThrottlingException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CertificateValidationException(CertificateValidationException)
The certificate is invalid.
InvalidRequestException(InvalidRequestException)
The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution request contains invalid status details. The message contains details about the error.
InvalidStateTransitionException(InvalidStateTransitionException)
An update attempted to change the job execution to a state that is invalid because of the job execution's current state (for example, an attempt to change a request in state SUCCESS to state IN_PROGRESS). In this case, the body of the error message also contains the executionState field.
ResourceNotFoundException(ResourceNotFoundException)
The specified resource does not exist.
The service is temporarily unavailable.
TerminalStateException(TerminalStateException)
The job is in a terminal state.
ThrottlingException(ThrottlingException)
The rate exceeds the limit.
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<DescribeJobExecutionError> for Error
impl From<DescribeJobExecutionError> for Error
source§fn from(err: DescribeJobExecutionError) -> Self
fn from(err: DescribeJobExecutionError) -> Self
source§impl From<GetPendingJobExecutionsError> for Error
impl From<GetPendingJobExecutionsError> for Error
source§fn from(err: GetPendingJobExecutionsError) -> Self
fn from(err: GetPendingJobExecutionsError) -> Self
source§impl<R> From<SdkError<DescribeJobExecutionError, R>> for Error
impl<R> From<SdkError<DescribeJobExecutionError, R>> for Error
source§fn from(err: SdkError<DescribeJobExecutionError, R>) -> Self
fn from(err: SdkError<DescribeJobExecutionError, R>) -> Self
source§impl<R> From<SdkError<GetPendingJobExecutionsError, R>> for Error
impl<R> From<SdkError<GetPendingJobExecutionsError, R>> for Error
source§fn from(err: SdkError<GetPendingJobExecutionsError, R>) -> Self
fn from(err: SdkError<GetPendingJobExecutionsError, R>) -> Self
source§impl<R> From<SdkError<StartNextPendingJobExecutionError, R>> for Error
impl<R> From<SdkError<StartNextPendingJobExecutionError, R>> for Error
source§fn from(err: SdkError<StartNextPendingJobExecutionError, R>) -> Self
fn from(err: SdkError<StartNextPendingJobExecutionError, R>) -> Self
source§impl<R> From<SdkError<UpdateJobExecutionError, R>> for Error
impl<R> From<SdkError<UpdateJobExecutionError, R>> for Error
source§fn from(err: SdkError<UpdateJobExecutionError, R>) -> Self
fn from(err: SdkError<UpdateJobExecutionError, R>) -> Self
source§impl From<StartNextPendingJobExecutionError> for Error
impl From<StartNextPendingJobExecutionError> for Error
source§fn from(err: StartNextPendingJobExecutionError) -> Self
fn from(err: StartNextPendingJobExecutionError) -> Self
source§impl From<UpdateJobExecutionError> for Error
impl From<UpdateJobExecutionError> for Error
source§fn from(err: UpdateJobExecutionError) -> Self
fn from(err: UpdateJobExecutionError) -> 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