#[non_exhaustive]pub enum Error {
ConcurrentUpdateException(ConcurrentUpdateException),
FailedResourceAccessException(FailedResourceAccessException),
InternalServiceException(InternalServiceException),
InvalidNextTokenException(InvalidNextTokenException),
LimitExceededException(LimitExceededException),
ObjectNotFoundException(ObjectNotFoundException),
ResourceNotFoundException(ResourceNotFoundException),
TooManyTagsException(TooManyTagsException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConcurrentUpdateException(ConcurrentUpdateException)
Concurrent updates caused an exception, for example, if you request an update to an Application Auto Scaling resource that already has a pending update.
FailedResourceAccessException(FailedResourceAccessException)
Failed access to resources caused an exception. This exception is thrown when Application Auto Scaling is unable to retrieve the alarms associated with a scaling policy due to a client error, for example, if the role ARN specified for a scalable target does not have permission to call the CloudWatch DescribeAlarms on your behalf.
InternalServiceException(InternalServiceException)
The service encountered an internal error.
InvalidNextTokenException(InvalidNextTokenException)
The next token supplied was invalid.
LimitExceededException(LimitExceededException)
A per-account resource limit is exceeded. For more information, see Application Auto Scaling service quotas.
ObjectNotFoundException(ObjectNotFoundException)
The specified object could not be found. For any operation that depends on the existence of a scalable target, this exception is thrown if the scalable target with the specified service namespace, resource ID, and scalable dimension does not exist. For any operation that deletes or deregisters a resource, this exception is thrown if the resource cannot be found.
ResourceNotFoundException(ResourceNotFoundException)
The specified resource doesn't exist.
TooManyTagsException(TooManyTagsException)
The request contains too many tags. Try the request again with fewer tags.
ValidationException(ValidationException)
An exception was thrown for a validation issue. Review the available parameters for the API request.
Unhandled(Unhandled)
Unhandled directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code():
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).