Enum aws_sdk_sfn::Error

source ·
#[non_exhaustive]
pub enum Error {
Show 29 variants ActivityDoesNotExist(ActivityDoesNotExist), ActivityLimitExceeded(ActivityLimitExceeded), ActivityWorkerLimitExceeded(ActivityWorkerLimitExceeded), ConflictException(ConflictException), ExecutionAlreadyExists(ExecutionAlreadyExists), ExecutionDoesNotExist(ExecutionDoesNotExist), ExecutionLimitExceeded(ExecutionLimitExceeded), ExecutionNotRedrivable(ExecutionNotRedrivable), InvalidArn(InvalidArn), InvalidDefinition(InvalidDefinition), InvalidExecutionInput(InvalidExecutionInput), InvalidLoggingConfiguration(InvalidLoggingConfiguration), InvalidName(InvalidName), InvalidOutput(InvalidOutput), InvalidToken(InvalidToken), InvalidTracingConfiguration(InvalidTracingConfiguration), MissingRequiredParameter(MissingRequiredParameter), ResourceNotFound(ResourceNotFound), ServiceQuotaExceededException(ServiceQuotaExceededException), StateMachineAlreadyExists(StateMachineAlreadyExists), StateMachineDeleting(StateMachineDeleting), StateMachineDoesNotExist(StateMachineDoesNotExist), StateMachineLimitExceeded(StateMachineLimitExceeded), StateMachineTypeNotSupported(StateMachineTypeNotSupported), TaskDoesNotExist(TaskDoesNotExist), TaskTimedOut(TaskTimedOut), TooManyTags(TooManyTags), ValidationException(ValidationException), Unhandled(Unhandled),
}
Expand description

All possible error types for this service.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ActivityDoesNotExist(ActivityDoesNotExist)

The specified activity does not exist.

§

ActivityLimitExceeded(ActivityLimitExceeded)

The maximum number of activities has been reached. Existing activities must be deleted before a new activity can be created.

§

ActivityWorkerLimitExceeded(ActivityWorkerLimitExceeded)

The maximum number of workers concurrently polling for activity tasks has been reached.

§

ConflictException(ConflictException)

Updating or deleting a resource can cause an inconsistent state. This error occurs when there're concurrent requests for DeleteStateMachineVersion, PublishStateMachineVersion, or UpdateStateMachine with the publish parameter set to true.

HTTP Status Code: 409

§

ExecutionAlreadyExists(ExecutionAlreadyExists)

The execution has the same name as another execution (but a different input).

Executions with the same name and input are considered idempotent.

§

ExecutionDoesNotExist(ExecutionDoesNotExist)

The specified execution does not exist.

§

ExecutionLimitExceeded(ExecutionLimitExceeded)

The maximum number of running executions has been reached. Running executions must end or be stopped before a new execution can be started.

§

ExecutionNotRedrivable(ExecutionNotRedrivable)

The execution Amazon Resource Name (ARN) that you specified for executionArn cannot be redriven.

§

InvalidArn(InvalidArn)

The provided Amazon Resource Name (ARN) is not valid.

§

InvalidDefinition(InvalidDefinition)

The provided Amazon States Language definition is not valid.

§

InvalidExecutionInput(InvalidExecutionInput)

The provided JSON input data is not valid.

§

InvalidLoggingConfiguration(InvalidLoggingConfiguration)

§

InvalidName(InvalidName)

The provided name is not valid.

§

InvalidOutput(InvalidOutput)

The provided JSON output data is not valid.

§

InvalidToken(InvalidToken)

The provided token is not valid.

§

InvalidTracingConfiguration(InvalidTracingConfiguration)

Your tracingConfiguration key does not match, or enabled has not been set to true or false.

§

MissingRequiredParameter(MissingRequiredParameter)

Request is missing a required parameter. This error occurs if both definition and roleArn are not specified.

§

ResourceNotFound(ResourceNotFound)

Could not find the referenced resource.

§

ServiceQuotaExceededException(ServiceQuotaExceededException)

The request would cause a service quota to be exceeded.

HTTP Status Code: 402

§

StateMachineAlreadyExists(StateMachineAlreadyExists)

A state machine with the same name but a different definition or role ARN already exists.

§

StateMachineDeleting(StateMachineDeleting)

The specified state machine is being deleted.

§

StateMachineDoesNotExist(StateMachineDoesNotExist)

The specified state machine does not exist.

§

StateMachineLimitExceeded(StateMachineLimitExceeded)

The maximum number of state machines has been reached. Existing state machines must be deleted before a new state machine can be created.

§

StateMachineTypeNotSupported(StateMachineTypeNotSupported)

§

TaskDoesNotExist(TaskDoesNotExist)

The activity does not exist.

§

TaskTimedOut(TaskTimedOut)

The task token has either expired or the task associated with the token has already been closed.

§

TooManyTags(TooManyTags)

You've exceeded the number of tags allowed for a resource. See the Limits Topic in the Step Functions Developer Guide.

§

ValidationException(ValidationException)

The input does not satisfy the constraints specified by an Amazon Web Services service.

§

Unhandled(Unhandled)

👎Deprecated: Matching 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 Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<BuildError> for Error

source§

fn from(value: BuildError) -> Self

Converts to this type from the input type.
source§

impl From<CreateActivityError> for Error

source§

fn from(err: CreateActivityError) -> Self

Converts to this type from the input type.
source§

impl From<CreateStateMachineAliasError> for Error

source§

fn from(err: CreateStateMachineAliasError) -> Self

Converts to this type from the input type.
source§

impl From<CreateStateMachineError> for Error

source§

fn from(err: CreateStateMachineError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteActivityError> for Error

source§

fn from(err: DeleteActivityError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteStateMachineAliasError> for Error

source§

fn from(err: DeleteStateMachineAliasError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteStateMachineError> for Error

source§

fn from(err: DeleteStateMachineError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteStateMachineVersionError> for Error

source§

fn from(err: DeleteStateMachineVersionError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeActivityError> for Error

source§

fn from(err: DescribeActivityError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeExecutionError> for Error

source§

fn from(err: DescribeExecutionError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeMapRunError> for Error

source§

fn from(err: DescribeMapRunError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeStateMachineAliasError> for Error

source§

fn from(err: DescribeStateMachineAliasError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeStateMachineError> for Error

source§

fn from(err: DescribeStateMachineError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeStateMachineForExecutionError> for Error

source§

fn from(err: DescribeStateMachineForExecutionError) -> Self

Converts to this type from the input type.
source§

impl From<GetActivityTaskError> for Error

source§

fn from(err: GetActivityTaskError) -> Self

Converts to this type from the input type.
source§

impl From<GetExecutionHistoryError> for Error

source§

fn from(err: GetExecutionHistoryError) -> Self

Converts to this type from the input type.
source§

impl From<ListActivitiesError> for Error

source§

fn from(err: ListActivitiesError) -> Self

Converts to this type from the input type.
source§

impl From<ListExecutionsError> for Error

source§

fn from(err: ListExecutionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListMapRunsError> for Error

source§

fn from(err: ListMapRunsError) -> Self

Converts to this type from the input type.
source§

impl From<ListStateMachineAliasesError> for Error

source§

fn from(err: ListStateMachineAliasesError) -> Self

Converts to this type from the input type.
source§

impl From<ListStateMachineVersionsError> for Error

source§

fn from(err: ListStateMachineVersionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListStateMachinesError> for Error

source§

fn from(err: ListStateMachinesError) -> Self

Converts to this type from the input type.
source§

impl From<ListTagsForResourceError> for Error

source§

fn from(err: ListTagsForResourceError) -> Self

Converts to this type from the input type.
source§

impl From<PublishStateMachineVersionError> for Error

source§

fn from(err: PublishStateMachineVersionError) -> Self

Converts to this type from the input type.
source§

impl From<RedriveExecutionError> for Error

source§

fn from(err: RedriveExecutionError) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateActivityError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateActivityError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateStateMachineAliasError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateStateMachineAliasError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateStateMachineError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateStateMachineError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteActivityError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteActivityError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteStateMachineAliasError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteStateMachineAliasError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteStateMachineError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteStateMachineError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteStateMachineVersionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteStateMachineVersionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeActivityError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeActivityError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeExecutionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeExecutionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeMapRunError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeMapRunError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeStateMachineAliasError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeStateMachineAliasError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeStateMachineError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeStateMachineError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeStateMachineForExecutionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeStateMachineForExecutionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetActivityTaskError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetActivityTaskError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetExecutionHistoryError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetExecutionHistoryError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListActivitiesError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListActivitiesError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListExecutionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListExecutionsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListMapRunsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListMapRunsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListStateMachineAliasesError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListStateMachineAliasesError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListStateMachineVersionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListStateMachineVersionsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListStateMachinesError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListStateMachinesError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListTagsForResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<PublishStateMachineVersionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<PublishStateMachineVersionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<RedriveExecutionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<RedriveExecutionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<SendTaskFailureError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<SendTaskFailureError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<SendTaskHeartbeatError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<SendTaskHeartbeatError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<SendTaskSuccessError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<SendTaskSuccessError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<StartExecutionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<StartExecutionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<StartSyncExecutionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<StartSyncExecutionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<StopExecutionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<StopExecutionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<TagResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<TagResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<TestStateError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<TestStateError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UntagResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UntagResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateMapRunError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateMapRunError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateStateMachineAliasError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateStateMachineAliasError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateStateMachineError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateStateMachineError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ValidateStateMachineDefinitionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ValidateStateMachineDefinitionError, R>) -> Self

Converts to this type from the input type.
source§

impl From<SendTaskFailureError> for Error

source§

fn from(err: SendTaskFailureError) -> Self

Converts to this type from the input type.
source§

impl From<SendTaskHeartbeatError> for Error

source§

fn from(err: SendTaskHeartbeatError) -> Self

Converts to this type from the input type.
source§

impl From<SendTaskSuccessError> for Error

source§

fn from(err: SendTaskSuccessError) -> Self

Converts to this type from the input type.
source§

impl From<StartExecutionError> for Error

source§

fn from(err: StartExecutionError) -> Self

Converts to this type from the input type.
source§

impl From<StartSyncExecutionError> for Error

source§

fn from(err: StartSyncExecutionError) -> Self

Converts to this type from the input type.
source§

impl From<StopExecutionError> for Error

source§

fn from(err: StopExecutionError) -> Self

Converts to this type from the input type.
source§

impl From<TagResourceError> for Error

source§

fn from(err: TagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<TestStateError> for Error

source§

fn from(err: TestStateError) -> Self

Converts to this type from the input type.
source§

impl From<UntagResourceError> for Error

source§

fn from(err: UntagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateMapRunError> for Error

source§

fn from(err: UpdateMapRunError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateStateMachineAliasError> for Error

source§

fn from(err: UpdateStateMachineAliasError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateStateMachineError> for Error

source§

fn from(err: UpdateStateMachineError) -> Self

Converts to this type from the input type.
source§

impl From<ValidateStateMachineDefinitionError> for Error

source§

fn from(err: ValidateStateMachineDefinitionError) -> Self

Converts to this type from the input type.
source§

impl ProvideErrorMetadata for Error

source§

fn meta(&self) -> &ErrorMetadata

Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
source§

fn code(&self) -> Option<&str>

Returns the error code if it’s available.
source§

fn message(&self) -> Option<&str>

Returns the error message, if there is one.
source§

impl RequestId for Error

source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more