Class TranslateException
- Exception
-
RuntimeException
-
Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
-
Aws\Translate\Exception\TranslateException
- Namespace: Aws\Translate\Exception
- Located at Translate/Exception/TranslateException.php
Represents an error interacting with the Amazon Translate 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
ConcurrentModificationException
[ 'Message' => '<string>', ]
Description
Another modification is being made. That modification must complete before you can make your change.
Members
- Message
-
- Type: string
ConflictException
[ 'Message' => '<string>', ]
Description
There was a conflict processing the request. Try your request again.
Members
- Message
-
- Type: string
DetectedLanguageLowConfidenceException
[ 'DetectedLanguageCode' => '<string>', 'Message' => '<string>', ]
Description
The confidence that Amazon Comprehend accurately detected the source language is low. If a low confidence level is acceptable for your application, you can use the language in the exception to call Amazon Translate again. For more information, see the DetectDominantLanguage operation in the Amazon Comprehend Developer Guide.
Members
- DetectedLanguageCode
-
- Type: string
The language code of the auto-detected language from Amazon Comprehend.
- Message
-
- Type: string
InternalServerException
[ 'Message' => '<string>', ]
Description
An internal server error occurred. Retry your request.
Members
- Message
-
- Type: string
InvalidFilterException
[ 'Message' => '<string>', ]
Description
The filter specified for the operation is not valid. Specify a different filter.
Members
- Message
-
- Type: string
InvalidParameterValueException
[ 'Message' => '<string>', ]
Description
The value of the parameter is not valid. Review the value of the parameter you are using to correct it, and then retry your operation.
Members
- Message
-
- Type: string
InvalidRequestException
[ 'Message' => '<string>', ]
Description
The request that you made is not valid. Check your request to determine why it's not valid and then retry the request.
Members
- Message
-
- Type: string
LimitExceededException
[ 'Message' => '<string>', ]
Description
The specified limit has been exceeded. Review your request and retry it with a quantity below the stated limit.
Members
- Message
-
- Type: string
ResourceNotFoundException
[ 'Message' => '<string>', ]
Description
The resource you are looking for has not been found. Review the resource you're looking for and see if a different resource will accomplish your needs before retrying the revised request.
Members
- Message
-
- Type: string
ServiceUnavailableException
[ 'Message' => '<string>', ]
Description
The Amazon Translate service is temporarily unavailable. Wait a bit and then retry your request.
Members
- Message
-
- Type: string
TextSizeLimitExceededException
[ 'Message' => '<string>', ]
Description
The size of the text you submitted exceeds the size limit. Reduce the size of the text or use a smaller document and then retry your request.
Members
- Message
-
- Type: string
TooManyRequestsException
[ 'Message' => '<string>', ]
Description
You have made too many requests within a short period of time. Wait for a short time and then try your request again.
Members
- Message
-
- Type: string
TooManyTagsException
[ 'ResourceArn' => '<string>', 'message' => '<string>', ]
Description
You have added too many tags to this resource. The maximum is 50 tags.
Members
- ResourceArn
-
- Type: string
- message
-
- Type: string
UnsupportedDisplayLanguageCodeException
[ 'DisplayLanguageCode' => '<string>', 'Message' => '<string>', ]
Description
Requested display language code is not supported.
Members
- DisplayLanguageCode
-
- Type: string
Language code passed in with the request.
- Message
-
- Type: string
UnsupportedLanguagePairException
[ 'Message' => '<string>', 'SourceLanguageCode' => '<string>', 'TargetLanguageCode' => '<string>', ]
Description
Amazon Translate does not support translation from the language of the source text into the requested target language. For more information, see Supported languages.
Members
- Message
-
- Type: string
- SourceLanguageCode
-
- Type: string
The language code for the language of the input text.
- TargetLanguageCode
-
- Type: string
The language code for the language of the translated text.