#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
EngineNotSupportedException(crate::types::error::EngineNotSupportedException),
InvalidLexiconException(crate::types::error::InvalidLexiconException),
InvalidNextTokenException(crate::types::error::InvalidNextTokenException),
InvalidS3BucketException(crate::types::error::InvalidS3BucketException),
InvalidS3KeyException(crate::types::error::InvalidS3KeyException),
InvalidSampleRateException(crate::types::error::InvalidSampleRateException),
InvalidSnsTopicArnException(crate::types::error::InvalidSnsTopicArnException),
InvalidSsmlException(crate::types::error::InvalidSsmlException),
InvalidTaskIdException(crate::types::error::InvalidTaskIdException),
LanguageNotSupportedException(crate::types::error::LanguageNotSupportedException),
LexiconNotFoundException(crate::types::error::LexiconNotFoundException),
LexiconSizeExceededException(crate::types::error::LexiconSizeExceededException),
MarksNotSupportedForFormatException(crate::types::error::MarksNotSupportedForFormatException),
MaxLexemeLengthExceededException(crate::types::error::MaxLexemeLengthExceededException),
MaxLexiconsNumberExceededException(crate::types::error::MaxLexiconsNumberExceededException),
ServiceFailureException(crate::types::error::ServiceFailureException),
SsmlMarksNotSupportedForTextTypeException(crate::types::error::SsmlMarksNotSupportedForTextTypeException),
SynthesisTaskNotFoundException(crate::types::error::SynthesisTaskNotFoundException),
TextLengthExceededException(crate::types::error::TextLengthExceededException),
UnsupportedPlsAlphabetException(crate::types::error::UnsupportedPlsAlphabetException),
UnsupportedPlsLanguageException(crate::types::error::UnsupportedPlsLanguageException),
#[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
variable wildcard pattern and check `.code()`:
\
`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
\
See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
Unhandled(crate::error::sealed_unhandled::Unhandled),
}
impl ::std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::EngineNotSupportedException(inner) => inner.fmt(f),
Error::InvalidLexiconException(inner) => inner.fmt(f),
Error::InvalidNextTokenException(inner) => inner.fmt(f),
Error::InvalidS3BucketException(inner) => inner.fmt(f),
Error::InvalidS3KeyException(inner) => inner.fmt(f),
Error::InvalidSampleRateException(inner) => inner.fmt(f),
Error::InvalidSnsTopicArnException(inner) => inner.fmt(f),
Error::InvalidSsmlException(inner) => inner.fmt(f),
Error::InvalidTaskIdException(inner) => inner.fmt(f),
Error::LanguageNotSupportedException(inner) => inner.fmt(f),
Error::LexiconNotFoundException(inner) => inner.fmt(f),
Error::LexiconSizeExceededException(inner) => inner.fmt(f),
Error::MarksNotSupportedForFormatException(inner) => inner.fmt(f),
Error::MaxLexemeLengthExceededException(inner) => inner.fmt(f),
Error::MaxLexiconsNumberExceededException(inner) => inner.fmt(f),
Error::ServiceFailureException(inner) => inner.fmt(f),
Error::SsmlMarksNotSupportedForTextTypeException(inner) => inner.fmt(f),
Error::SynthesisTaskNotFoundException(inner) => inner.fmt(f),
Error::TextLengthExceededException(inner) => inner.fmt(f),
Error::UnsupportedPlsAlphabetException(inner) => inner.fmt(f),
Error::UnsupportedPlsLanguageException(inner) => inner.fmt(f),
Error::Unhandled(_) => {
if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
write!(f, "unhandled error ({code})")
} else {
f.write_str("unhandled error")
}
}
}
}
}
impl From<::aws_smithy_types::error::operation::BuildError> for Error {
fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
source: value.into(),
meta: ::std::default::Default::default(),
})
}
}
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
match self {
Self::EngineNotSupportedException(inner) => inner.meta(),
Self::InvalidLexiconException(inner) => inner.meta(),
Self::InvalidNextTokenException(inner) => inner.meta(),
Self::InvalidS3BucketException(inner) => inner.meta(),
Self::InvalidS3KeyException(inner) => inner.meta(),
Self::InvalidSampleRateException(inner) => inner.meta(),
Self::InvalidSnsTopicArnException(inner) => inner.meta(),
Self::InvalidSsmlException(inner) => inner.meta(),
Self::InvalidTaskIdException(inner) => inner.meta(),
Self::LanguageNotSupportedException(inner) => inner.meta(),
Self::LexiconNotFoundException(inner) => inner.meta(),
Self::LexiconSizeExceededException(inner) => inner.meta(),
Self::MarksNotSupportedForFormatException(inner) => inner.meta(),
Self::MaxLexemeLengthExceededException(inner) => inner.meta(),
Self::MaxLexiconsNumberExceededException(inner) => inner.meta(),
Self::ServiceFailureException(inner) => inner.meta(),
Self::SsmlMarksNotSupportedForTextTypeException(inner) => inner.meta(),
Self::SynthesisTaskNotFoundException(inner) => inner.meta(),
Self::TextLengthExceededException(inner) => inner.meta(),
Self::UnsupportedPlsAlphabetException(inner) => inner.meta(),
Self::UnsupportedPlsLanguageException(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lexicon::DeleteLexiconError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lexicon::DeleteLexiconError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_lexicon::DeleteLexiconError> for Error {
fn from(err: crate::operation::delete_lexicon::DeleteLexiconError) -> Self {
match err {
crate::operation::delete_lexicon::DeleteLexiconError::LexiconNotFoundException(inner) => Error::LexiconNotFoundException(inner),
crate::operation::delete_lexicon::DeleteLexiconError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
crate::operation::delete_lexicon::DeleteLexiconError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_voices::DescribeVoicesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_voices::DescribeVoicesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_voices::DescribeVoicesError> for Error {
fn from(err: crate::operation::describe_voices::DescribeVoicesError) -> Self {
match err {
crate::operation::describe_voices::DescribeVoicesError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
crate::operation::describe_voices::DescribeVoicesError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
crate::operation::describe_voices::DescribeVoicesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lexicon::GetLexiconError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lexicon::GetLexiconError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_lexicon::GetLexiconError> for Error {
fn from(err: crate::operation::get_lexicon::GetLexiconError) -> Self {
match err {
crate::operation::get_lexicon::GetLexiconError::LexiconNotFoundException(inner) => Error::LexiconNotFoundException(inner),
crate::operation::get_lexicon::GetLexiconError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
crate::operation::get_lexicon::GetLexiconError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_speech_synthesis_task::GetSpeechSynthesisTaskError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_speech_synthesis_task::GetSpeechSynthesisTaskError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_speech_synthesis_task::GetSpeechSynthesisTaskError> for Error {
fn from(err: crate::operation::get_speech_synthesis_task::GetSpeechSynthesisTaskError) -> Self {
match err {
crate::operation::get_speech_synthesis_task::GetSpeechSynthesisTaskError::InvalidTaskIdException(inner) => {
Error::InvalidTaskIdException(inner)
}
crate::operation::get_speech_synthesis_task::GetSpeechSynthesisTaskError::ServiceFailureException(inner) => {
Error::ServiceFailureException(inner)
}
crate::operation::get_speech_synthesis_task::GetSpeechSynthesisTaskError::SynthesisTaskNotFoundException(inner) => {
Error::SynthesisTaskNotFoundException(inner)
}
crate::operation::get_speech_synthesis_task::GetSpeechSynthesisTaskError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lexicons::ListLexiconsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lexicons::ListLexiconsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_lexicons::ListLexiconsError> for Error {
fn from(err: crate::operation::list_lexicons::ListLexiconsError) -> Self {
match err {
crate::operation::list_lexicons::ListLexiconsError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
crate::operation::list_lexicons::ListLexiconsError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
crate::operation::list_lexicons::ListLexiconsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_speech_synthesis_tasks::ListSpeechSynthesisTasksError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_speech_synthesis_tasks::ListSpeechSynthesisTasksError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_speech_synthesis_tasks::ListSpeechSynthesisTasksError> for Error {
fn from(err: crate::operation::list_speech_synthesis_tasks::ListSpeechSynthesisTasksError) -> Self {
match err {
crate::operation::list_speech_synthesis_tasks::ListSpeechSynthesisTasksError::InvalidNextTokenException(inner) => {
Error::InvalidNextTokenException(inner)
}
crate::operation::list_speech_synthesis_tasks::ListSpeechSynthesisTasksError::ServiceFailureException(inner) => {
Error::ServiceFailureException(inner)
}
crate::operation::list_speech_synthesis_tasks::ListSpeechSynthesisTasksError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_lexicon::PutLexiconError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_lexicon::PutLexiconError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::put_lexicon::PutLexiconError> for Error {
fn from(err: crate::operation::put_lexicon::PutLexiconError) -> Self {
match err {
crate::operation::put_lexicon::PutLexiconError::InvalidLexiconException(inner) => Error::InvalidLexiconException(inner),
crate::operation::put_lexicon::PutLexiconError::LexiconSizeExceededException(inner) => Error::LexiconSizeExceededException(inner),
crate::operation::put_lexicon::PutLexiconError::MaxLexemeLengthExceededException(inner) => Error::MaxLexemeLengthExceededException(inner),
crate::operation::put_lexicon::PutLexiconError::MaxLexiconsNumberExceededException(inner) => {
Error::MaxLexiconsNumberExceededException(inner)
}
crate::operation::put_lexicon::PutLexiconError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
crate::operation::put_lexicon::PutLexiconError::UnsupportedPlsAlphabetException(inner) => Error::UnsupportedPlsAlphabetException(inner),
crate::operation::put_lexicon::PutLexiconError::UnsupportedPlsLanguageException(inner) => Error::UnsupportedPlsLanguageException(inner),
crate::operation::put_lexicon::PutLexiconError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError> for Error {
fn from(err: crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError) -> Self {
match err {
crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::EngineNotSupportedException(inner) => {
Error::EngineNotSupportedException(inner)
}
crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::InvalidS3BucketException(inner) => {
Error::InvalidS3BucketException(inner)
}
crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::InvalidS3KeyException(inner) => {
Error::InvalidS3KeyException(inner)
}
crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::InvalidSampleRateException(inner) => {
Error::InvalidSampleRateException(inner)
}
crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::InvalidSnsTopicArnException(inner) => {
Error::InvalidSnsTopicArnException(inner)
}
crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::InvalidSsmlException(inner) => {
Error::InvalidSsmlException(inner)
}
crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::LanguageNotSupportedException(inner) => {
Error::LanguageNotSupportedException(inner)
}
crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::LexiconNotFoundException(inner) => {
Error::LexiconNotFoundException(inner)
}
crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::MarksNotSupportedForFormatException(inner) => {
Error::MarksNotSupportedForFormatException(inner)
}
crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::ServiceFailureException(inner) => {
Error::ServiceFailureException(inner)
}
crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::SsmlMarksNotSupportedForTextTypeException(inner) => {
Error::SsmlMarksNotSupportedForTextTypeException(inner)
}
crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::TextLengthExceededException(inner) => {
Error::TextLengthExceededException(inner)
}
crate::operation::start_speech_synthesis_task::StartSpeechSynthesisTaskError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::synthesize_speech::SynthesizeSpeechError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::synthesize_speech::SynthesizeSpeechError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::synthesize_speech::SynthesizeSpeechError> for Error {
fn from(err: crate::operation::synthesize_speech::SynthesizeSpeechError) -> Self {
match err {
crate::operation::synthesize_speech::SynthesizeSpeechError::EngineNotSupportedException(inner) => {
Error::EngineNotSupportedException(inner)
}
crate::operation::synthesize_speech::SynthesizeSpeechError::InvalidSampleRateException(inner) => Error::InvalidSampleRateException(inner),
crate::operation::synthesize_speech::SynthesizeSpeechError::InvalidSsmlException(inner) => Error::InvalidSsmlException(inner),
crate::operation::synthesize_speech::SynthesizeSpeechError::LanguageNotSupportedException(inner) => {
Error::LanguageNotSupportedException(inner)
}
crate::operation::synthesize_speech::SynthesizeSpeechError::LexiconNotFoundException(inner) => Error::LexiconNotFoundException(inner),
crate::operation::synthesize_speech::SynthesizeSpeechError::MarksNotSupportedForFormatException(inner) => {
Error::MarksNotSupportedForFormatException(inner)
}
crate::operation::synthesize_speech::SynthesizeSpeechError::ServiceFailureException(inner) => Error::ServiceFailureException(inner),
crate::operation::synthesize_speech::SynthesizeSpeechError::SsmlMarksNotSupportedForTextTypeException(inner) => {
Error::SsmlMarksNotSupportedForTextTypeException(inner)
}
crate::operation::synthesize_speech::SynthesizeSpeechError::TextLengthExceededException(inner) => {
Error::TextLengthExceededException(inner)
}
crate::operation::synthesize_speech::SynthesizeSpeechError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl ::std::error::Error for Error {
fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
match self {
Error::EngineNotSupportedException(inner) => inner.source(),
Error::InvalidLexiconException(inner) => inner.source(),
Error::InvalidNextTokenException(inner) => inner.source(),
Error::InvalidS3BucketException(inner) => inner.source(),
Error::InvalidS3KeyException(inner) => inner.source(),
Error::InvalidSampleRateException(inner) => inner.source(),
Error::InvalidSnsTopicArnException(inner) => inner.source(),
Error::InvalidSsmlException(inner) => inner.source(),
Error::InvalidTaskIdException(inner) => inner.source(),
Error::LanguageNotSupportedException(inner) => inner.source(),
Error::LexiconNotFoundException(inner) => inner.source(),
Error::LexiconSizeExceededException(inner) => inner.source(),
Error::MarksNotSupportedForFormatException(inner) => inner.source(),
Error::MaxLexemeLengthExceededException(inner) => inner.source(),
Error::MaxLexiconsNumberExceededException(inner) => inner.source(),
Error::ServiceFailureException(inner) => inner.source(),
Error::SsmlMarksNotSupportedForTextTypeException(inner) => inner.source(),
Error::SynthesisTaskNotFoundException(inner) => inner.source(),
Error::TextLengthExceededException(inner) => inner.source(),
Error::UnsupportedPlsAlphabetException(inner) => inner.source(),
Error::UnsupportedPlsLanguageException(inner) => inner.source(),
Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
}
}
}
impl ::aws_types::request_id::RequestId for Error {
fn request_id(&self) -> Option<&str> {
match self {
Self::EngineNotSupportedException(e) => e.request_id(),
Self::InvalidLexiconException(e) => e.request_id(),
Self::InvalidNextTokenException(e) => e.request_id(),
Self::InvalidS3BucketException(e) => e.request_id(),
Self::InvalidS3KeyException(e) => e.request_id(),
Self::InvalidSampleRateException(e) => e.request_id(),
Self::InvalidSnsTopicArnException(e) => e.request_id(),
Self::InvalidSsmlException(e) => e.request_id(),
Self::InvalidTaskIdException(e) => e.request_id(),
Self::LanguageNotSupportedException(e) => e.request_id(),
Self::LexiconNotFoundException(e) => e.request_id(),
Self::LexiconSizeExceededException(e) => e.request_id(),
Self::MarksNotSupportedForFormatException(e) => e.request_id(),
Self::MaxLexemeLengthExceededException(e) => e.request_id(),
Self::MaxLexiconsNumberExceededException(e) => e.request_id(),
Self::ServiceFailureException(e) => e.request_id(),
Self::SsmlMarksNotSupportedForTextTypeException(e) => e.request_id(),
Self::SynthesisTaskNotFoundException(e) => e.request_id(),
Self::TextLengthExceededException(e) => e.request_id(),
Self::UnsupportedPlsAlphabetException(e) => e.request_id(),
Self::UnsupportedPlsLanguageException(e) => e.request_id(),
Self::Unhandled(e) => e.meta.request_id(),
}
}
}