#[non_exhaustive]pub enum ResumeWorkflowRunError {
ConcurrentRunsExceededException(ConcurrentRunsExceededException),
EntityNotFoundException(EntityNotFoundException),
IllegalWorkflowStateException(IllegalWorkflowStateException),
InternalServiceException(InternalServiceException),
InvalidInputException(InvalidInputException),
OperationTimeoutException(OperationTimeoutException),
Unhandled(Unhandled),
}Expand description
Error type for the ResumeWorkflowRunError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConcurrentRunsExceededException(ConcurrentRunsExceededException)
Too many jobs are being run concurrently.
EntityNotFoundException(EntityNotFoundException)
A specified entity does not exist
IllegalWorkflowStateException(IllegalWorkflowStateException)
The workflow is in an invalid state to perform a requested operation.
InternalServiceException(InternalServiceException)
An internal service error occurred.
InvalidInputException(InvalidInputException)
The input provided was not valid.
OperationTimeoutException(OperationTimeoutException)
The operation timed out.
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 ResumeWorkflowRunError
impl ResumeWorkflowRunError
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 ResumeWorkflowRunError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ResumeWorkflowRunError::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_concurrent_runs_exceeded_exception(&self) -> bool
pub fn is_concurrent_runs_exceeded_exception(&self) -> bool
Returns true if the error kind is ResumeWorkflowRunError::ConcurrentRunsExceededException.
sourcepub fn is_entity_not_found_exception(&self) -> bool
pub fn is_entity_not_found_exception(&self) -> bool
Returns true if the error kind is ResumeWorkflowRunError::EntityNotFoundException.
sourcepub fn is_illegal_workflow_state_exception(&self) -> bool
pub fn is_illegal_workflow_state_exception(&self) -> bool
Returns true if the error kind is ResumeWorkflowRunError::IllegalWorkflowStateException.
sourcepub fn is_internal_service_exception(&self) -> bool
pub fn is_internal_service_exception(&self) -> bool
Returns true if the error kind is ResumeWorkflowRunError::InternalServiceException.
sourcepub fn is_invalid_input_exception(&self) -> bool
pub fn is_invalid_input_exception(&self) -> bool
Returns true if the error kind is ResumeWorkflowRunError::InvalidInputException.
sourcepub fn is_operation_timeout_exception(&self) -> bool
pub fn is_operation_timeout_exception(&self) -> bool
Returns true if the error kind is ResumeWorkflowRunError::OperationTimeoutException.
Trait Implementations§
source§impl CreateUnhandledError for ResumeWorkflowRunError
impl CreateUnhandledError for ResumeWorkflowRunError
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 ResumeWorkflowRunError
impl Debug for ResumeWorkflowRunError
source§impl Display for ResumeWorkflowRunError
impl Display for ResumeWorkflowRunError
source§impl Error for ResumeWorkflowRunError
impl Error for ResumeWorkflowRunError
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<ResumeWorkflowRunError> for Error
impl From<ResumeWorkflowRunError> for Error
source§fn from(err: ResumeWorkflowRunError) -> Self
fn from(err: ResumeWorkflowRunError) -> Self
source§impl ProvideErrorMetadata for ResumeWorkflowRunError
impl ProvideErrorMetadata for ResumeWorkflowRunError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ResumeWorkflowRunError
impl RequestId for ResumeWorkflowRunError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.