Enum aws_sdk_polly::Error

source ·
#[non_exhaustive]
pub enum Error {
Show 22 variants EngineNotSupportedException(EngineNotSupportedException), InvalidLexiconException(InvalidLexiconException), InvalidNextTokenException(InvalidNextTokenException), InvalidS3BucketException(InvalidS3BucketException), InvalidS3KeyException(InvalidS3KeyException), InvalidSampleRateException(InvalidSampleRateException), InvalidSnsTopicArnException(InvalidSnsTopicArnException), InvalidSsmlException(InvalidSsmlException), InvalidTaskIdException(InvalidTaskIdException), LanguageNotSupportedException(LanguageNotSupportedException), LexiconNotFoundException(LexiconNotFoundException), LexiconSizeExceededException(LexiconSizeExceededException), MarksNotSupportedForFormatException(MarksNotSupportedForFormatException), MaxLexemeLengthExceededException(MaxLexemeLengthExceededException), MaxLexiconsNumberExceededException(MaxLexiconsNumberExceededException), ServiceFailureException(ServiceFailureException), SsmlMarksNotSupportedForTextTypeException(SsmlMarksNotSupportedForTextTypeException), SynthesisTaskNotFoundException(SynthesisTaskNotFoundException), TextLengthExceededException(TextLengthExceededException), UnsupportedPlsAlphabetException(UnsupportedPlsAlphabetException), UnsupportedPlsLanguageException(UnsupportedPlsLanguageException), Unhandled(Unhandled),
}
Expand description

All possible error types for this service.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

EngineNotSupportedException(EngineNotSupportedException)

This engine is not compatible with the voice that you have designated. Choose a new voice that is compatible with the engine or change the engine and restart the operation.

§

InvalidLexiconException(InvalidLexiconException)

Amazon Polly can't find the specified lexicon. Verify that the lexicon's name is spelled correctly, and then try again.

§

InvalidNextTokenException(InvalidNextTokenException)

The NextToken is invalid. Verify that it's spelled correctly, and then try again.

§

InvalidS3BucketException(InvalidS3BucketException)

The provided Amazon S3 bucket name is invalid. Please check your input with S3 bucket naming requirements and try again.

§

InvalidS3KeyException(InvalidS3KeyException)

The provided Amazon S3 key prefix is invalid. Please provide a valid S3 object key name.

§

InvalidSampleRateException(InvalidSampleRateException)

The specified sample rate is not valid.

§

InvalidSnsTopicArnException(InvalidSnsTopicArnException)

The provided SNS topic ARN is invalid. Please provide a valid SNS topic ARN and try again.

§

InvalidSsmlException(InvalidSsmlException)

The SSML you provided is invalid. Verify the SSML syntax, spelling of tags and values, and then try again.

§

InvalidTaskIdException(InvalidTaskIdException)

The provided Task ID is not valid. Please provide a valid Task ID and try again.

§

LanguageNotSupportedException(LanguageNotSupportedException)

The language specified is not currently supported by Amazon Polly in this capacity.

§

LexiconNotFoundException(LexiconNotFoundException)

Amazon Polly can't find the specified lexicon. This could be caused by a lexicon that is missing, its name is misspelled or specifying a lexicon that is in a different region.

Verify that the lexicon exists, is in the region (see ListLexicons) and that you spelled its name is spelled correctly. Then try again.

§

LexiconSizeExceededException(LexiconSizeExceededException)

The maximum size of the specified lexicon would be exceeded by this operation.

§

MarksNotSupportedForFormatException(MarksNotSupportedForFormatException)

Speech marks are not supported for the OutputFormat selected. Speech marks are only available for content in json format.

§

MaxLexemeLengthExceededException(MaxLexemeLengthExceededException)

The maximum size of the lexeme would be exceeded by this operation.

§

MaxLexiconsNumberExceededException(MaxLexiconsNumberExceededException)

The maximum number of lexicons would be exceeded by this operation.

§

ServiceFailureException(ServiceFailureException)

An unknown condition has caused a service failure.

§

SsmlMarksNotSupportedForTextTypeException(SsmlMarksNotSupportedForTextTypeException)

SSML speech marks are not supported for plain text-type input.

§

SynthesisTaskNotFoundException(SynthesisTaskNotFoundException)

The Speech Synthesis task with requested Task ID cannot be found.

§

TextLengthExceededException(TextLengthExceededException)

The value of the "Text" parameter is longer than the accepted limits. For the SynthesizeSpeech API, the limit for input text is a maximum of 6000 characters total, of which no more than 3000 can be billed characters. For the StartSpeechSynthesisTask API, the maximum is 200,000 characters, of which no more than 100,000 can be billed characters. SSML tags are not counted as billed characters.

§

UnsupportedPlsAlphabetException(UnsupportedPlsAlphabetException)

The alphabet specified by the lexicon is not a supported alphabet. Valid values are x-sampa and ipa.

§

UnsupportedPlsLanguageException(UnsupportedPlsLanguageException)

The language specified in the lexicon is unsupported. For a list of supported languages, see Lexicon Attributes.

§

Unhandled(Unhandled)

An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).

Trait Implementations§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<DeleteLexiconError> for Error

source§

fn from(err: DeleteLexiconError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeVoicesError> for Error

source§

fn from(err: DescribeVoicesError) -> Self

Converts to this type from the input type.
source§

impl From<GetLexiconError> for Error

source§

fn from(err: GetLexiconError) -> Self

Converts to this type from the input type.
source§

impl From<GetSpeechSynthesisTaskError> for Error

source§

fn from(err: GetSpeechSynthesisTaskError) -> Self

Converts to this type from the input type.
source§

impl From<ListLexiconsError> for Error

source§

fn from(err: ListLexiconsError) -> Self

Converts to this type from the input type.
source§

impl From<ListSpeechSynthesisTasksError> for Error

source§

fn from(err: ListSpeechSynthesisTasksError) -> Self

Converts to this type from the input type.
source§

impl From<PutLexiconError> for Error

source§

fn from(err: PutLexiconError) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteLexiconError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteLexiconError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeVoicesError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeVoicesError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetLexiconError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetLexiconError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetSpeechSynthesisTaskError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetSpeechSynthesisTaskError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListLexiconsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListLexiconsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListSpeechSynthesisTasksError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListSpeechSynthesisTasksError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<PutLexiconError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<PutLexiconError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<StartSpeechSynthesisTaskError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<StartSpeechSynthesisTaskError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<SynthesizeSpeechError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<SynthesizeSpeechError, R>) -> Self

Converts to this type from the input type.
source§

impl From<StartSpeechSynthesisTaskError> for Error

source§

fn from(err: StartSpeechSynthesisTaskError) -> Self

Converts to this type from the input type.
source§

impl From<SynthesizeSpeechError> for Error

source§

fn from(err: SynthesizeSpeechError) -> Self

Converts to this type from the input type.
source§

impl RequestId for Error

source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.

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§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unsharedwhere Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more