Enum aws_sdk_workmail::Error[][src]

#[non_exhaustive]
pub enum Error {
Show 23 variants DirectoryInUseException(DirectoryInUseException), DirectoryServiceAuthenticationFailedException(DirectoryServiceAuthenticationFailedException), DirectoryUnavailableException(DirectoryUnavailableException), EmailAddressInUseException(EmailAddressInUseException), EntityAlreadyRegisteredException(EntityAlreadyRegisteredException), EntityNotFoundException(EntityNotFoundException), EntityStateException(EntityStateException), InvalidConfigurationException(InvalidConfigurationException), InvalidCustomSesConfigurationException(InvalidCustomSesConfigurationException), InvalidParameterException(InvalidParameterException), InvalidPasswordException(InvalidPasswordException), LimitExceededException(LimitExceededException), MailDomainInUseException(MailDomainInUseException), MailDomainNotFoundException(MailDomainNotFoundException), MailDomainStateException(MailDomainStateException), NameAvailabilityException(NameAvailabilityException), OrganizationNotFoundException(OrganizationNotFoundException), OrganizationStateException(OrganizationStateException), ReservedNameException(ReservedNameException), ResourceNotFoundException(ResourceNotFoundException), TooManyTagsException(TooManyTagsException), UnsupportedOperationException(UnsupportedOperationException), Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description

All possible error types for this service.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

DirectoryInUseException(DirectoryInUseException)

Tuple Fields

The directory is already in use by another WorkMail organization in the same account and Region.

DirectoryServiceAuthenticationFailedException(DirectoryServiceAuthenticationFailedException)

The directory service doesn't recognize the credentials supplied by WorkMail.

DirectoryUnavailableException(DirectoryUnavailableException)

The directory is unavailable. It might be located in another Region or deleted.

EmailAddressInUseException(EmailAddressInUseException)

The email address that you're trying to assign is already created for a different user, group, or resource.

EntityAlreadyRegisteredException(EntityAlreadyRegisteredException)

The user, group, or resource that you're trying to register is already registered.

EntityNotFoundException(EntityNotFoundException)

Tuple Fields

The identifier supplied for the user, group, or resource does not exist in your organization.

EntityStateException(EntityStateException)

Tuple Fields

You are performing an operation on a user, group, or resource that isn't in the expected state, such as trying to delete an active user.

InvalidConfigurationException(InvalidConfigurationException)

The configuration for a resource isn't valid. A resource must either be able to auto-respond to requests or have at least one delegate associated that can do so on its behalf.

InvalidCustomSesConfigurationException(InvalidCustomSesConfigurationException)

You SES configuration has customizations that Amazon WorkMail cannot save. The error message lists the invalid setting. For examples of invalid settings, refer to CreateReceiptRule.

InvalidParameterException(InvalidParameterException)

One or more of the input parameters don't match the service's restrictions.

InvalidPasswordException(InvalidPasswordException)

Tuple Fields

The supplied password doesn't match the minimum security constraints, such as length or use of special characters.

LimitExceededException(LimitExceededException)

Tuple Fields

The request exceeds the limit of the resource.

MailDomainInUseException(MailDomainInUseException)

Tuple Fields

The domain you're trying to change is in use by another user or organization in your account. See the error message for details.

MailDomainNotFoundException(MailDomainNotFoundException)

The domain specified is not found in your organization.

MailDomainStateException(MailDomainStateException)

Tuple Fields

After a domain has been added to the organization, it must be verified. The domain is not yet verified.

NameAvailabilityException(NameAvailabilityException)

The user, group, or resource name isn't unique in Amazon WorkMail.

OrganizationNotFoundException(OrganizationNotFoundException)

An operation received a valid organization identifier that either doesn't belong or exist in the system.

OrganizationStateException(OrganizationStateException)

The organization must have a valid state to perform certain operations on the organization or its members.

ReservedNameException(ReservedNameException)

Tuple Fields

This user, group, or resource name is not allowed in Amazon WorkMail.

ResourceNotFoundException(ResourceNotFoundException)

The resource cannot be found.

TooManyTagsException(TooManyTagsException)

Tuple Fields

The resource can have up to 50 user-applied tags.

UnsupportedOperationException(UnsupportedOperationException)

You can't perform a write operation against a read-only directory.

Unhandled(Box<dyn Error + Send + Sync + 'static>)

Tuple Fields

0: Box<dyn Error + Send + Sync + 'static>

An unhandled error occurred.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more