pub enum StartDocumentTextDetectionError {
AccessDenied(String),
BadDocument(String),
DocumentTooLarge(String),
IdempotentParameterMismatch(String),
InternalServerError(String),
InvalidParameter(String),
InvalidS3Object(String),
LimitExceeded(String),
ProvisionedThroughputExceeded(String),
Throttling(String),
UnsupportedDocument(String),
}Expand description
Errors returned by StartDocumentTextDetection
Variants§
AccessDenied(String)
You aren't authorized to perform the action.
BadDocument(String)
Amazon Textract isn't able to read the document.
DocumentTooLarge(String)
The document can't be processed because it's too large. The maximum document size for synchronous operations 5 MB. The maximum document size for asynchronous operations is 500 MB for PDF files.
IdempotentParameterMismatch(String)
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.
InternalServerError(String)
Amazon Textract experienced a service issue. Try your call again.
InvalidParameter(String)
An input parameter violated a constraint. For example, in synchronous operations, an InvalidParameterException exception occurs when neither of the S3Object or Bytes values are supplied in the Document request parameter. Validate your parameter before calling the API operation again.
InvalidS3Object(String)
Amazon Textract is unable to access the S3 object that's specified in the request.
LimitExceeded(String)
An Amazon Textract service limit was exceeded. For example, if you start too many asynchronous jobs concurrently, calls to start operations (StartDocumentTextDetection, for example) raise a LimitExceededException exception (HTTP status code: 400) until the number of concurrently running jobs is below the Amazon Textract service limit.
ProvisionedThroughputExceeded(String)
The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Textract.
Throttling(String)
Amazon Textract is temporarily unable to process the request. Try your call again.
UnsupportedDocument(String)
The format of the input document isn't supported. Documents for synchronous operations can be in PNG or JPEG format. Documents for asynchronous operations can also be in PDF format.
Implementations§
Trait Implementations§
Source§impl Error for StartDocumentTextDetectionError
impl Error for StartDocumentTextDetectionError
1.30.0 · 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 PartialEq for StartDocumentTextDetectionError
impl PartialEq for StartDocumentTextDetectionError
Source§fn eq(&self, other: &StartDocumentTextDetectionError) -> bool
fn eq(&self, other: &StartDocumentTextDetectionError) -> bool
self and other values to be equal, and is used by ==.