Enum aws_sdk_codestarnotifications::operation::list_notification_rules::ListNotificationRulesError
source · #[non_exhaustive]pub enum ListNotificationRulesError {
InvalidNextTokenException(InvalidNextTokenException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
Error type for the ListNotificationRulesError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidNextTokenException(InvalidNextTokenException)
The value for the enumeration token used in the request to return the next batch of the results is not valid.
ValidationException(ValidationException)
One or more parameter values are not valid.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl ListNotificationRulesError
impl ListNotificationRulesError
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 ListNotificationRulesError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ListNotificationRulesError::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 ListNotificationRulesError::InvalidNextTokenException
.
sourcepub fn is_validation_exception(&self) -> bool
pub fn is_validation_exception(&self) -> bool
Returns true
if the error kind is ListNotificationRulesError::ValidationException
.
Trait Implementations§
source§impl CreateUnhandledError for ListNotificationRulesError
impl CreateUnhandledError for ListNotificationRulesError
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 ListNotificationRulesError
impl Debug for ListNotificationRulesError
source§impl Display for ListNotificationRulesError
impl Display for ListNotificationRulesError
source§impl Error for ListNotificationRulesError
impl Error for ListNotificationRulesError
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<ListNotificationRulesError> for Error
impl From<ListNotificationRulesError> for Error
source§fn from(err: ListNotificationRulesError) -> Self
fn from(err: ListNotificationRulesError) -> Self
source§impl ProvideErrorMetadata for ListNotificationRulesError
impl ProvideErrorMetadata for ListNotificationRulesError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ListNotificationRulesError
impl RequestId for ListNotificationRulesError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.