Class ComprehendException
- Exception
-
RuntimeException
-
Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
-
Aws\Comprehend\Exception\ComprehendException
- Namespace: Aws\Comprehend\Exception
- Located at Comprehend/Exception/ComprehendException.php
Represents an error interacting with the Amazon Comprehend service.
Methods Summary
Methods inherited from Aws\Exception\AwsException
__construct()
,
__toString()
,
get()
,
getAwsErrorCode()
,
getAwsErrorMessage()
,
getAwsErrorShape()
,
getAwsErrorType()
,
getAwsRequestId()
,
getCommand()
,
getRequest()
,
getResponse()
,
getResult()
,
getStatusCode()
,
getTransferInfo()
,
hasKey()
,
isConnectionError()
,
isMaxRetriesExceeded()
,
search()
,
setMaxRetriesExceeded()
,
setTransferInfo()
Methods inherited from Exception
__wakeup()
,
getCode()
,
getFile()
,
getLine()
,
getMessage()
,
getPrevious()
,
getTrace()
,
getTraceAsString()
Methods inherited from ArrayAccess
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Methods inherited from Aws\MonitoringEventsInterface
Methods used from Aws\HasDataTrait
Methods used from Aws\HasMonitoringEventsTrait
Expected Exception Codes
BatchSizeLimitExceededException
[ 'Message' => '<string>', ]
Description
The number of documents in the request exceeds the limit of 25. Try your request again with fewer documents.
Members
ConcurrentModificationException
[ 'Message' => '<string>', ]
Description
Concurrent modification of the tags associated with an Amazon Comprehend resource is not supported.
Members
InternalServerException
[ 'Message' => '<string>', ]
InvalidFilterException
[ 'Message' => '<string>', ]
Description
The filter specified for the operation is invalid. Specify a different filter.
Members
InvalidRequestException
[ 'Detail' => [ 'Reason' => 'DOCUMENT_SIZE_EXCEEDED|UNSUPPORTED_DOC_TYPE|PAGE_LIMIT_EXCEEDED|TEXTRACT_ACCESS_DENIED', ], 'Message' => '<string>', 'Reason' => 'INVALID_DOCUMENT', ]
Description
The request is invalid.
Members
- Detail
-
- Type: InvalidRequestDetail structure
Provides additional detail about why the request failed:
-
Document size is too large - Check the size of your file and resubmit the request.
-
Document type is not supported - Check the file type and resubmit the request.
-
Too many pages in the document - Check the number of pages in your file and resubmit the request.
-
Access denied to Amazon Textract - Verify that your account has permission to use Amazon Textract API operations and resubmit the request.
- Message
-
- Type: string
- Reason
-
- Type: string
JobNotFoundException
[ 'Message' => '<string>', ]
Description
The specified job was not found. Check the job ID and try again.
Members
KmsKeyValidationException
[ 'Message' => '<string>', ]
Description
The KMS customer managed key (CMK) entered cannot be validated. Verify the key and re-enter it.
Members
ResourceInUseException
[ 'Message' => '<string>', ]
Description
The specified resource name is already in use. Use a different name and try your request again.
Members
ResourceLimitExceededException
[ 'Message' => '<string>', ]
Description
The maximum number of resources per account has been exceeded. Review the resources, and then try your request again.
Members
ResourceNotFoundException
[ 'Message' => '<string>', ]
Description
The specified resource ARN was not found. Check the ARN and try your request again.
Members
ResourceUnavailableException
[ 'Message' => '<string>', ]
Description
The specified resource is not available. Check the resource and try your request again.
Members
TextSizeLimitExceededException
[ 'Message' => '<string>', ]
Description
The size of the input text exceeds the limit. Use a smaller document.
Members
TooManyRequestsException
[ 'Message' => '<string>', ]
Description
The number of requests exceeds the limit. Resubmit your request later.
Members
TooManyTagKeysException
[ 'Message' => '<string>', ]
Description
The request contains more tag keys than can be associated with a resource (50 tag keys per resource).
Members
TooManyTagsException
[ 'Message' => '<string>', ]
Description
The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
Members
UnsupportedLanguageException
[ 'Message' => '<string>', ]
Description
Amazon Comprehend can't process the language of the input text. For custom entity recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are accepted. For a list of supported languages, Supported languages in the Comprehend Developer Guide.