#[non_exhaustive]pub enum StopPipelineExecutionError {
ConflictException(ConflictException),
DuplicatedStopRequestException(DuplicatedStopRequestException),
PipelineExecutionNotStoppableException(PipelineExecutionNotStoppableException),
PipelineNotFoundException(PipelineNotFoundException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
Error type for the StopPipelineExecutionError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConflictException(ConflictException)
Your request cannot be handled because the pipeline is busy handling ongoing activities. Try again later.
DuplicatedStopRequestException(DuplicatedStopRequestException)
The pipeline execution is already in a Stopping
state. If you already chose to stop and wait, you cannot make that request again. You can choose to stop and abandon now, but be aware that this option can lead to failed tasks or out of sequence tasks. If you already chose to stop and abandon, you cannot make that request again.
PipelineExecutionNotStoppableException(PipelineExecutionNotStoppableException)
Unable to stop the pipeline execution. The execution might already be in a Stopped
state, or it might no longer be in progress.
PipelineNotFoundException(PipelineNotFoundException)
The pipeline was specified in an invalid format or cannot be found.
ValidationException(ValidationException)
The validation was specified in an invalid format.
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 StopPipelineExecutionError
impl StopPipelineExecutionError
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 StopPipelineExecutionError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the StopPipelineExecutionError::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_conflict_exception(&self) -> bool
pub fn is_conflict_exception(&self) -> bool
Returns true
if the error kind is StopPipelineExecutionError::ConflictException
.
sourcepub fn is_duplicated_stop_request_exception(&self) -> bool
pub fn is_duplicated_stop_request_exception(&self) -> bool
Returns true
if the error kind is StopPipelineExecutionError::DuplicatedStopRequestException
.
sourcepub fn is_pipeline_execution_not_stoppable_exception(&self) -> bool
pub fn is_pipeline_execution_not_stoppable_exception(&self) -> bool
Returns true
if the error kind is StopPipelineExecutionError::PipelineExecutionNotStoppableException
.
sourcepub fn is_pipeline_not_found_exception(&self) -> bool
pub fn is_pipeline_not_found_exception(&self) -> bool
Returns true
if the error kind is StopPipelineExecutionError::PipelineNotFoundException
.
sourcepub fn is_validation_exception(&self) -> bool
pub fn is_validation_exception(&self) -> bool
Returns true
if the error kind is StopPipelineExecutionError::ValidationException
.
Trait Implementations§
source§impl CreateUnhandledError for StopPipelineExecutionError
impl CreateUnhandledError for StopPipelineExecutionError
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 StopPipelineExecutionError
impl Debug for StopPipelineExecutionError
source§impl Display for StopPipelineExecutionError
impl Display for StopPipelineExecutionError
source§impl Error for StopPipelineExecutionError
impl Error for StopPipelineExecutionError
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<StopPipelineExecutionError> for Error
impl From<StopPipelineExecutionError> for Error
source§fn from(err: StopPipelineExecutionError) -> Self
fn from(err: StopPipelineExecutionError) -> Self
source§impl ProvideErrorMetadata for StopPipelineExecutionError
impl ProvideErrorMetadata for StopPipelineExecutionError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for StopPipelineExecutionError
impl RequestId for StopPipelineExecutionError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.