Enum aws_sdk_codestarnotifications::operation::delete_notification_rule::DeleteNotificationRuleError
source · #[non_exhaustive]pub enum DeleteNotificationRuleError {
ConcurrentModificationException(ConcurrentModificationException),
LimitExceededException(LimitExceededException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
Error type for the DeleteNotificationRuleError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConcurrentModificationException(ConcurrentModificationException)
AWS CodeStar Notifications can't complete the request because the resource is being modified by another process. Wait a few minutes and try again.
LimitExceededException(LimitExceededException)
One of the AWS CodeStar Notifications limits has been exceeded. Limits apply to accounts, notification rules, notifications, resources, and targets. For more information, see Limits.
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 DeleteNotificationRuleError
impl DeleteNotificationRuleError
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 DeleteNotificationRuleError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the DeleteNotificationRuleError::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_concurrent_modification_exception(&self) -> bool
pub fn is_concurrent_modification_exception(&self) -> bool
Returns true
if the error kind is DeleteNotificationRuleError::ConcurrentModificationException
.
sourcepub fn is_limit_exceeded_exception(&self) -> bool
pub fn is_limit_exceeded_exception(&self) -> bool
Returns true
if the error kind is DeleteNotificationRuleError::LimitExceededException
.
sourcepub fn is_validation_exception(&self) -> bool
pub fn is_validation_exception(&self) -> bool
Returns true
if the error kind is DeleteNotificationRuleError::ValidationException
.
Trait Implementations§
source§impl CreateUnhandledError for DeleteNotificationRuleError
impl CreateUnhandledError for DeleteNotificationRuleError
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 DeleteNotificationRuleError
impl Debug for DeleteNotificationRuleError
source§impl Error for DeleteNotificationRuleError
impl Error for DeleteNotificationRuleError
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<DeleteNotificationRuleError> for Error
impl From<DeleteNotificationRuleError> for Error
source§fn from(err: DeleteNotificationRuleError) -> Self
fn from(err: DeleteNotificationRuleError) -> Self
source§impl ProvideErrorMetadata for DeleteNotificationRuleError
impl ProvideErrorMetadata for DeleteNotificationRuleError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for DeleteNotificationRuleError
impl RequestId for DeleteNotificationRuleError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.