#[non_exhaustive]pub enum StartWorkflowExecutionError {
DefaultUndefinedFault(DefaultUndefinedFault),
LimitExceededFault(LimitExceededFault),
OperationNotPermittedFault(OperationNotPermittedFault),
TypeDeprecatedFault(TypeDeprecatedFault),
UnknownResourceFault(UnknownResourceFault),
WorkflowExecutionAlreadyStartedFault(WorkflowExecutionAlreadyStartedFault),
Unhandled(Unhandled),
}
Expand description
Error type for the StartWorkflowExecutionError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DefaultUndefinedFault(DefaultUndefinedFault)
The StartWorkflowExecution
API action was called without the required parameters set.
Some workflow execution parameters, such as the decision taskList
, must be set to start the execution. However, these parameters might have been set as defaults when the workflow type was registered. In this case, you can omit these parameters from the StartWorkflowExecution
call and Amazon SWF uses the values defined in the workflow type.
If these parameters aren't set and no default parameters were defined in the workflow type, this error is displayed.
LimitExceededFault(LimitExceededFault)
Returned by any operation if a system imposed limitation has been reached. To address this fault you should either clean up unused resources or increase the limit by contacting AWS.
OperationNotPermittedFault(OperationNotPermittedFault)
Returned when the caller doesn't have sufficient permissions to invoke the action.
TypeDeprecatedFault(TypeDeprecatedFault)
Returned when the specified activity or workflow type was already deprecated.
UnknownResourceFault(UnknownResourceFault)
Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.
WorkflowExecutionAlreadyStartedFault(WorkflowExecutionAlreadyStartedFault)
Returned by StartWorkflowExecution
when an open execution with the same workflowId is already running in the specified domain.
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).
Implementations§
source§impl StartWorkflowExecutionError
impl StartWorkflowExecutionError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the StartWorkflowExecutionError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the StartWorkflowExecutionError::Unhandled
variant from an ErrorMetadata
.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_default_undefined_fault(&self) -> bool
pub fn is_default_undefined_fault(&self) -> bool
Returns true
if the error kind is StartWorkflowExecutionError::DefaultUndefinedFault
.
sourcepub fn is_limit_exceeded_fault(&self) -> bool
pub fn is_limit_exceeded_fault(&self) -> bool
Returns true
if the error kind is StartWorkflowExecutionError::LimitExceededFault
.
sourcepub fn is_operation_not_permitted_fault(&self) -> bool
pub fn is_operation_not_permitted_fault(&self) -> bool
Returns true
if the error kind is StartWorkflowExecutionError::OperationNotPermittedFault
.
sourcepub fn is_type_deprecated_fault(&self) -> bool
pub fn is_type_deprecated_fault(&self) -> bool
Returns true
if the error kind is StartWorkflowExecutionError::TypeDeprecatedFault
.
sourcepub fn is_unknown_resource_fault(&self) -> bool
pub fn is_unknown_resource_fault(&self) -> bool
Returns true
if the error kind is StartWorkflowExecutionError::UnknownResourceFault
.
sourcepub fn is_workflow_execution_already_started_fault(&self) -> bool
pub fn is_workflow_execution_already_started_fault(&self) -> bool
Returns true
if the error kind is StartWorkflowExecutionError::WorkflowExecutionAlreadyStartedFault
.
Trait Implementations§
source§impl CreateUnhandledError for StartWorkflowExecutionError
impl CreateUnhandledError for StartWorkflowExecutionError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source
and error metadata.source§impl Debug for StartWorkflowExecutionError
impl Debug for StartWorkflowExecutionError
source§impl Error for StartWorkflowExecutionError
impl Error for StartWorkflowExecutionError
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<StartWorkflowExecutionError> for Error
impl From<StartWorkflowExecutionError> for Error
source§fn from(err: StartWorkflowExecutionError) -> Self
fn from(err: StartWorkflowExecutionError) -> Self
source§impl ProvideErrorMetadata for StartWorkflowExecutionError
impl ProvideErrorMetadata for StartWorkflowExecutionError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for StartWorkflowExecutionError
impl RequestId for StartWorkflowExecutionError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.Auto Trait Implementations§
impl Freeze for StartWorkflowExecutionError
impl !RefUnwindSafe for StartWorkflowExecutionError
impl Send for StartWorkflowExecutionError
impl Sync for StartWorkflowExecutionError
impl Unpin for StartWorkflowExecutionError
impl !UnwindSafe for StartWorkflowExecutionError
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