Enum aws_sdk_rekognition::Error
source · [−]#[non_exhaustive]
pub enum Error {
Show 21 variants
AccessDeniedException(AccessDeniedException),
HumanLoopQuotaExceededException(HumanLoopQuotaExceededException),
IdempotentParameterMismatchException(IdempotentParameterMismatchException),
ImageTooLargeException(ImageTooLargeException),
InternalServerError(InternalServerError),
InvalidImageFormatException(InvalidImageFormatException),
InvalidPaginationTokenException(InvalidPaginationTokenException),
InvalidParameterException(InvalidParameterException),
InvalidPolicyRevisionIdException(InvalidPolicyRevisionIdException),
InvalidS3ObjectException(InvalidS3ObjectException),
LimitExceededException(LimitExceededException),
MalformedPolicyDocumentException(MalformedPolicyDocumentException),
ProvisionedThroughputExceededException(ProvisionedThroughputExceededException),
ResourceAlreadyExistsException(ResourceAlreadyExistsException),
ResourceInUseException(ResourceInUseException),
ResourceNotFoundException(ResourceNotFoundException),
ResourceNotReadyException(ResourceNotReadyException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
ThrottlingException(ThrottlingException),
VideoTooLargeException(VideoTooLargeException),
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
AccessDeniedException(AccessDeniedException)
You are not authorized to perform the action.
HumanLoopQuotaExceededException(HumanLoopQuotaExceededException)
The number of in-progress human reviews you have has exceeded the number allowed.
IdempotentParameterMismatchException(IdempotentParameterMismatchException)
A ClientRequestToken input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation.
ImageTooLargeException(ImageTooLargeException)
The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment, the image size or resolution exceeds the allowed limit. For more information, see Guidelines and quotas in Amazon Rekognition in the Amazon Rekognition Developer Guide.
InternalServerError(InternalServerError)
Amazon Rekognition experienced a service issue. Try your call again.
InvalidImageFormatException(InvalidImageFormatException)
The provided image format is not supported.
InvalidPaginationTokenException(InvalidPaginationTokenException)
Pagination token in the request is not valid.
InvalidParameterException(InvalidParameterException)
Input parameter violated a constraint. Validate your parameter before calling the API operation again.
InvalidPolicyRevisionIdException(InvalidPolicyRevisionIdException)
The supplied revision id for the project policy is invalid.
InvalidS3ObjectException(InvalidS3ObjectException)
Amazon Rekognition is unable to access the S3 object specified in the request.
LimitExceededException(LimitExceededException)
An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until the number of concurrently running jobs is below the Amazon Rekognition service limit.
MalformedPolicyDocumentException(MalformedPolicyDocumentException)
The format of the project policy document that you supplied to PutProjectPolicy is incorrect.
ProvisionedThroughputExceededException(ProvisionedThroughputExceededException)
The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Rekognition.
ResourceAlreadyExistsException(ResourceAlreadyExistsException)
A resource with the specified ID already exists.
ResourceInUseException(ResourceInUseException)
The specified resource is already being used.
ResourceNotFoundException(ResourceNotFoundException)
The resource specified in the request cannot be found.
ResourceNotReadyException(ResourceNotReadyException)
The requested resource isn't ready. For example, this exception occurs when you call DetectCustomLabels with a model version that isn't deployed.
ServiceQuotaExceededException(ServiceQuotaExceededException)
The size of the collection exceeds the allowed limit. For more information, see Guidelines and quotas in Amazon Rekognition in the Amazon Rekognition Developer Guide.
ThrottlingException(ThrottlingException)
Amazon Rekognition is temporarily unable to process the request. Try your call again.
VideoTooLargeException(VideoTooLargeException)
The file size or duration of the supplied media is too large. The maximum file size is 10GB. The maximum duration is 6 hours.
Unhandled(Box<dyn Error + Send + Sync + 'static>)
An unhandled error occurred.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()