#[non_exhaustive]pub enum ModifyUsageLimitError {
InvalidUsageLimitFault(InvalidUsageLimitFault),
UnsupportedOperationFault(UnsupportedOperationFault),
UsageLimitNotFoundFault(UsageLimitNotFoundFault),
Unhandled(Unhandled),
}
Expand description
Error type for the ModifyUsageLimitError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidUsageLimitFault(InvalidUsageLimitFault)
The usage limit is not valid.
UnsupportedOperationFault(UnsupportedOperationFault)
The requested operation isn't supported.
UsageLimitNotFoundFault(UsageLimitNotFoundFault)
The usage limit identifier can't be found.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl ModifyUsageLimitError
impl ModifyUsageLimitError
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 ModifyUsageLimitError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ModifyUsageLimitError::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_usage_limit_fault(&self) -> bool
pub fn is_invalid_usage_limit_fault(&self) -> bool
Returns true
if the error kind is ModifyUsageLimitError::InvalidUsageLimitFault
.
sourcepub fn is_unsupported_operation_fault(&self) -> bool
pub fn is_unsupported_operation_fault(&self) -> bool
Returns true
if the error kind is ModifyUsageLimitError::UnsupportedOperationFault
.
sourcepub fn is_usage_limit_not_found_fault(&self) -> bool
pub fn is_usage_limit_not_found_fault(&self) -> bool
Returns true
if the error kind is ModifyUsageLimitError::UsageLimitNotFoundFault
.
Trait Implementations§
source§impl CreateUnhandledError for ModifyUsageLimitError
impl CreateUnhandledError for ModifyUsageLimitError
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 ModifyUsageLimitError
impl Debug for ModifyUsageLimitError
source§impl Display for ModifyUsageLimitError
impl Display for ModifyUsageLimitError
source§impl Error for ModifyUsageLimitError
impl Error for ModifyUsageLimitError
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<ModifyUsageLimitError> for Error
impl From<ModifyUsageLimitError> for Error
source§fn from(err: ModifyUsageLimitError) -> Self
fn from(err: ModifyUsageLimitError) -> Self
source§impl ProvideErrorMetadata for ModifyUsageLimitError
impl ProvideErrorMetadata for ModifyUsageLimitError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ModifyUsageLimitError
impl RequestId for ModifyUsageLimitError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.