#[non_exhaustive]pub enum ListResourceEvaluationsError {
InvalidNextTokenException(InvalidNextTokenException),
InvalidParameterValueException(InvalidParameterValueException),
InvalidTimeRangeException(InvalidTimeRangeException),
Unhandled(Unhandled),
}Expand description
Error type for the ListResourceEvaluationsError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidNextTokenException(InvalidNextTokenException)
The specified next token is not valid. Specify the nextToken string that was returned in the previous response to get the next page of results.
InvalidParameterValueException(InvalidParameterValueException)
One or more of the specified parameters are not valid. Verify that your parameters are valid and try again.
InvalidTimeRangeException(InvalidTimeRangeException)
The specified time range is not valid. The earlier time is not chronologically before the later time.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl ListResourceEvaluationsError
impl ListResourceEvaluationsError
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 ListResourceEvaluationsError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ListResourceEvaluationsError::Unhandled variant from a aws_smithy_types::error::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_invalid_next_token_exception(&self) -> bool
pub fn is_invalid_next_token_exception(&self) -> bool
Returns true if the error kind is ListResourceEvaluationsError::InvalidNextTokenException.
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 ListResourceEvaluationsError::InvalidParameterValueException.
sourcepub fn is_invalid_time_range_exception(&self) -> bool
pub fn is_invalid_time_range_exception(&self) -> bool
Returns true if the error kind is ListResourceEvaluationsError::InvalidTimeRangeException.
Trait Implementations§
source§impl CreateUnhandledError for ListResourceEvaluationsError
impl CreateUnhandledError for ListResourceEvaluationsError
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 ListResourceEvaluationsError
impl Debug for ListResourceEvaluationsError
source§impl Error for ListResourceEvaluationsError
impl Error for ListResourceEvaluationsError
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<ListResourceEvaluationsError> for Error
impl From<ListResourceEvaluationsError> for Error
source§fn from(err: ListResourceEvaluationsError) -> Self
fn from(err: ListResourceEvaluationsError) -> Self
source§impl ProvideErrorMetadata for ListResourceEvaluationsError
impl ProvideErrorMetadata for ListResourceEvaluationsError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ListResourceEvaluationsError
impl RequestId for ListResourceEvaluationsError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.