#[non_exhaustive]pub enum SendAutomationSignalError {
AutomationExecutionNotFoundException(AutomationExecutionNotFoundException),
AutomationStepNotFoundException(AutomationStepNotFoundException),
InternalServerError(InternalServerError),
InvalidAutomationSignalException(InvalidAutomationSignalException),
Unhandled(Unhandled),
}
Expand description
Error type for the SendAutomationSignalError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AutomationExecutionNotFoundException(AutomationExecutionNotFoundException)
There is no automation execution information for the requested automation execution ID.
AutomationStepNotFoundException(AutomationStepNotFoundException)
The specified step name and execution ID don't exist. Verify the information and try again.
InternalServerError(InternalServerError)
An error occurred on the server side.
InvalidAutomationSignalException(InvalidAutomationSignalException)
The signal isn't valid for the current Automation execution.
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 SendAutomationSignalError
impl SendAutomationSignalError
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 SendAutomationSignalError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the SendAutomationSignalError::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_automation_execution_not_found_exception(&self) -> bool
pub fn is_automation_execution_not_found_exception(&self) -> bool
Returns true
if the error kind is SendAutomationSignalError::AutomationExecutionNotFoundException
.
sourcepub fn is_automation_step_not_found_exception(&self) -> bool
pub fn is_automation_step_not_found_exception(&self) -> bool
Returns true
if the error kind is SendAutomationSignalError::AutomationStepNotFoundException
.
sourcepub fn is_internal_server_error(&self) -> bool
pub fn is_internal_server_error(&self) -> bool
Returns true
if the error kind is SendAutomationSignalError::InternalServerError
.
sourcepub fn is_invalid_automation_signal_exception(&self) -> bool
pub fn is_invalid_automation_signal_exception(&self) -> bool
Returns true
if the error kind is SendAutomationSignalError::InvalidAutomationSignalException
.
Trait Implementations§
source§impl CreateUnhandledError for SendAutomationSignalError
impl CreateUnhandledError for SendAutomationSignalError
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 SendAutomationSignalError
impl Debug for SendAutomationSignalError
source§impl Display for SendAutomationSignalError
impl Display for SendAutomationSignalError
source§impl Error for SendAutomationSignalError
impl Error for SendAutomationSignalError
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<SendAutomationSignalError> for Error
impl From<SendAutomationSignalError> for Error
source§fn from(err: SendAutomationSignalError) -> Self
fn from(err: SendAutomationSignalError) -> Self
source§impl ProvideErrorMetadata for SendAutomationSignalError
impl ProvideErrorMetadata for SendAutomationSignalError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for SendAutomationSignalError
impl RequestId for SendAutomationSignalError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.