Struct aws_sdk_redshift::error::CreateUsageLimitError
source · #[non_exhaustive]pub struct CreateUsageLimitError {
pub kind: CreateUsageLimitErrorKind,
/* private fields */
}
Expand description
Error type for the CreateUsageLimit
operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.kind: CreateUsageLimitErrorKind
Kind of error that occurred.
Implementations§
source§impl CreateUsageLimitError
impl CreateUsageLimitError
sourcepub fn new(kind: CreateUsageLimitErrorKind, meta: Error) -> Self
pub fn new(kind: CreateUsageLimitErrorKind, meta: Error) -> Self
Creates a new CreateUsageLimitError
.
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 CreateUsageLimitError::Unhandled
variant from any error type.
sourcepub fn generic(err: Error) -> Self
pub fn generic(err: Error) -> Self
Creates the CreateUsageLimitError::Unhandled
variant from a aws_smithy_types::Error
.
sourcepub fn meta(&self) -> &Error
pub fn meta(&self) -> &Error
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn request_id(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&str>
Returns the request ID if it’s available.
sourcepub fn is_cluster_not_found_fault(&self) -> bool
pub fn is_cluster_not_found_fault(&self) -> bool
Returns true
if the error kind is CreateUsageLimitErrorKind::ClusterNotFoundFault
.
sourcepub fn is_invalid_cluster_state_fault(&self) -> bool
pub fn is_invalid_cluster_state_fault(&self) -> bool
Returns true
if the error kind is CreateUsageLimitErrorKind::InvalidClusterStateFault
.
sourcepub fn is_invalid_usage_limit_fault(&self) -> bool
pub fn is_invalid_usage_limit_fault(&self) -> bool
Returns true
if the error kind is CreateUsageLimitErrorKind::InvalidUsageLimitFault
.
sourcepub fn is_limit_exceeded_fault(&self) -> bool
pub fn is_limit_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateUsageLimitErrorKind::LimitExceededFault
.
sourcepub fn is_tag_limit_exceeded_fault(&self) -> bool
pub fn is_tag_limit_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateUsageLimitErrorKind::TagLimitExceededFault
.
sourcepub fn is_unsupported_operation_fault(&self) -> bool
pub fn is_unsupported_operation_fault(&self) -> bool
Returns true
if the error kind is CreateUsageLimitErrorKind::UnsupportedOperationFault
.
sourcepub fn is_usage_limit_already_exists_fault(&self) -> bool
pub fn is_usage_limit_already_exists_fault(&self) -> bool
Returns true
if the error kind is CreateUsageLimitErrorKind::UsageLimitAlreadyExistsFault
.