Enum aws_sdk_translate::Error
source · [−]#[non_exhaustive]
pub enum Error {
Show 14 variants
ConcurrentModificationException(ConcurrentModificationException),
ConflictException(ConflictException),
DetectedLanguageLowConfidenceException(DetectedLanguageLowConfidenceException),
InternalServerException(InternalServerException),
InvalidFilterException(InvalidFilterException),
InvalidParameterValueException(InvalidParameterValueException),
InvalidRequestException(InvalidRequestException),
LimitExceededException(LimitExceededException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceUnavailableException(ServiceUnavailableException),
TextSizeLimitExceededException(TextSizeLimitExceededException),
TooManyRequestsException(TooManyRequestsException),
UnsupportedLanguagePairException(UnsupportedLanguagePairException),
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
ConcurrentModificationException(ConcurrentModificationException)
Another modification is being made. That modification must complete before you can make your change.
ConflictException(ConflictException)
There was a conflict processing the request. Try your request again.
DetectedLanguageLowConfidenceException(DetectedLanguageLowConfidenceException)
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.
InternalServerException(InternalServerException)
An internal server error occurred. Retry your request.
InvalidFilterException(InvalidFilterException)
The filter specified for the operation is invalid. Specify a different filter.
InvalidParameterValueException(InvalidParameterValueException)
The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and then retry your operation.
InvalidRequestException(InvalidRequestException)
The request that you made is invalid. Check your request to determine why it's invalid and then retry the request.
LimitExceededException(LimitExceededException)
The specified limit has been exceeded. Review your request and retry it with a quantity below the stated limit.
ResourceNotFoundException(ResourceNotFoundException)
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.
ServiceUnavailableException(ServiceUnavailableException)
The Amazon Translate service is temporarily unavailable. Please wait a bit and then retry your request.
TextSizeLimitExceededException(TextSizeLimitExceededException)
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.
TooManyRequestsException(TooManyRequestsException)
You have made too many requests within a short period of time. Wait for a short time and then try your request again.
UnsupportedLanguagePairException(UnsupportedLanguagePairException)
Amazon Translate does not support translation from the language of the source text into the requested target language. For more information, see how-to-error-msg.
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)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl<R> From<SdkError<CreateParallelDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateParallelDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreateParallelDataError, R>) -> Self
fn from(err: SdkError<CreateParallelDataError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DeleteParallelDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteParallelDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteParallelDataError, R>) -> Self
fn from(err: SdkError<DeleteParallelDataError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DeleteTerminologyError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteTerminologyError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteTerminologyError, R>) -> Self
fn from(err: SdkError<DeleteTerminologyError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DescribeTextTranslationJobError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeTextTranslationJobError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeTextTranslationJobError, R>) -> Self
fn from(err: SdkError<DescribeTextTranslationJobError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetParallelDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetParallelDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetParallelDataError, R>) -> Self
fn from(err: SdkError<GetParallelDataError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetTerminologyError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetTerminologyError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetTerminologyError, R>) -> Self
fn from(err: SdkError<GetTerminologyError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ImportTerminologyError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ImportTerminologyError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ImportTerminologyError, R>) -> Self
fn from(err: SdkError<ImportTerminologyError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListParallelDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListParallelDataError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListParallelDataError, R>) -> Self
fn from(err: SdkError<ListParallelDataError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListTerminologiesError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListTerminologiesError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListTerminologiesError, R>) -> Self
fn from(err: SdkError<ListTerminologiesError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListTextTranslationJobsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListTextTranslationJobsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListTextTranslationJobsError, R>) -> Self
fn from(err: SdkError<ListTextTranslationJobsError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<StartTextTranslationJobError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<StartTextTranslationJobError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<StartTextTranslationJobError, R>) -> Self
fn from(err: SdkError<StartTextTranslationJobError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<StopTextTranslationJobError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<StopTextTranslationJobError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<StopTextTranslationJobError, R>) -> Self
fn from(err: SdkError<StopTextTranslationJobError, R>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more