#[non_exhaustive]pub enum RegisterDomainError {
DomainAlreadyExistsFault(DomainAlreadyExistsFault),
LimitExceededFault(LimitExceededFault),
OperationNotPermittedFault(OperationNotPermittedFault),
TooManyTagsFault(TooManyTagsFault),
Unhandled(Unhandled),
}Expand description
Error type for the RegisterDomainError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DomainAlreadyExistsFault(DomainAlreadyExistsFault)
Returned if the domain already exists. You may get this fault if you are registering a domain that is either already registered or deprecated, or if you undeprecate a domain that is currently registered.
LimitExceededFault(LimitExceededFault)
Returned by any operation if a system imposed limitation has been reached. To address this fault you should either clean up unused resources or increase the limit by contacting AWS.
OperationNotPermittedFault(OperationNotPermittedFault)
Returned when the caller doesn't have sufficient permissions to invoke the action.
TooManyTagsFault(TooManyTagsFault)
You've exceeded the number of tags allowed for a domain.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl RegisterDomainError
impl RegisterDomainError
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 RegisterDomainError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the RegisterDomainError::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_domain_already_exists_fault(&self) -> bool
pub fn is_domain_already_exists_fault(&self) -> bool
Returns true if the error kind is RegisterDomainError::DomainAlreadyExistsFault.
sourcepub fn is_limit_exceeded_fault(&self) -> bool
pub fn is_limit_exceeded_fault(&self) -> bool
Returns true if the error kind is RegisterDomainError::LimitExceededFault.
sourcepub fn is_operation_not_permitted_fault(&self) -> bool
pub fn is_operation_not_permitted_fault(&self) -> bool
Returns true if the error kind is RegisterDomainError::OperationNotPermittedFault.
Returns true if the error kind is RegisterDomainError::TooManyTagsFault.
Trait Implementations§
source§impl CreateUnhandledError for RegisterDomainError
impl CreateUnhandledError for RegisterDomainError
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 RegisterDomainError
impl Debug for RegisterDomainError
source§impl Display for RegisterDomainError
impl Display for RegisterDomainError
source§impl Error for RegisterDomainError
impl Error for RegisterDomainError
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<RegisterDomainError> for Error
impl From<RegisterDomainError> for Error
source§fn from(err: RegisterDomainError) -> Self
fn from(err: RegisterDomainError) -> Self
source§impl ProvideErrorMetadata for RegisterDomainError
impl ProvideErrorMetadata for RegisterDomainError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for RegisterDomainError
impl RequestId for RegisterDomainError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.