#[non_exhaustive]pub enum StartResourceEvaluationError {
IdempotentParameterMismatch(IdempotentParameterMismatch),
InvalidParameterValueException(InvalidParameterValueException),
Unhandled(Unhandled),
}Expand description
Error type for the StartResourceEvaluationError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
IdempotentParameterMismatch(IdempotentParameterMismatch)
Using the same client token with one or more different parameters. Specify a new client token with the parameter changes and try again.
InvalidParameterValueException(InvalidParameterValueException)
One or more of the specified parameters are not valid. Verify that your parameters are valid and try again.
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 StartResourceEvaluationError
impl StartResourceEvaluationError
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 StartResourceEvaluationError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the StartResourceEvaluationError::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_idempotent_parameter_mismatch(&self) -> bool
pub fn is_idempotent_parameter_mismatch(&self) -> bool
Returns true if the error kind is StartResourceEvaluationError::IdempotentParameterMismatch.
sourcepub fn is_invalid_parameter_value_exception(&self) -> bool
pub fn is_invalid_parameter_value_exception(&self) -> bool
Returns true if the error kind is StartResourceEvaluationError::InvalidParameterValueException.
Trait Implementations§
source§impl CreateUnhandledError for StartResourceEvaluationError
impl CreateUnhandledError for StartResourceEvaluationError
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 StartResourceEvaluationError
impl Debug for StartResourceEvaluationError
source§impl Error for StartResourceEvaluationError
impl Error for StartResourceEvaluationError
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<StartResourceEvaluationError> for Error
impl From<StartResourceEvaluationError> for Error
source§fn from(err: StartResourceEvaluationError) -> Self
fn from(err: StartResourceEvaluationError) -> Self
source§impl ProvideErrorMetadata for StartResourceEvaluationError
impl ProvideErrorMetadata for StartResourceEvaluationError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for StartResourceEvaluationError
impl RequestId for StartResourceEvaluationError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.