aws_sdk_mediatailor/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>A request contains unexpected data.</p>
7    BadRequestException(crate::types::error::BadRequestException),
8    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
9    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
10    variable wildcard pattern and check `.code()`:
11     \
12    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
13     \
14    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
15    Unhandled(crate::error::sealed_unhandled::Unhandled),
16}
17impl ::std::fmt::Display for Error {
18    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
19        match self {
20            Error::BadRequestException(inner) => inner.fmt(f),
21            Error::Unhandled(_) => {
22                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
23                    write!(f, "unhandled error ({code})")
24                } else {
25                    f.write_str("unhandled error")
26                }
27            }
28        }
29    }
30}
31impl From<::aws_smithy_types::error::operation::BuildError> for Error {
32    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
33        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
34            source: value.into(),
35            meta: ::std::default::Default::default(),
36        })
37    }
38}
39impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
40    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
41        match self {
42            Self::BadRequestException(inner) => inner.meta(),
43            Self::Unhandled(inner) => &inner.meta,
44        }
45    }
46}
47impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::configure_logs_for_channel::ConfigureLogsForChannelError, R>>
48    for Error
49where
50    R: Send + Sync + std::fmt::Debug + 'static,
51{
52    fn from(
53        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::configure_logs_for_channel::ConfigureLogsForChannelError, R>,
54    ) -> Self {
55        match err {
56            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
57            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
58                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
59                source: err.into(),
60            }),
61        }
62    }
63}
64impl From<crate::operation::configure_logs_for_channel::ConfigureLogsForChannelError> for Error {
65    fn from(err: crate::operation::configure_logs_for_channel::ConfigureLogsForChannelError) -> Self {
66        match err {
67            crate::operation::configure_logs_for_channel::ConfigureLogsForChannelError::Unhandled(inner) => Error::Unhandled(inner),
68        }
69    }
70}
71impl<R>
72    From<
73        ::aws_smithy_runtime_api::client::result::SdkError<
74            crate::operation::configure_logs_for_playback_configuration::ConfigureLogsForPlaybackConfigurationError,
75            R,
76        >,
77    > for Error
78where
79    R: Send + Sync + std::fmt::Debug + 'static,
80{
81    fn from(
82        err: ::aws_smithy_runtime_api::client::result::SdkError<
83            crate::operation::configure_logs_for_playback_configuration::ConfigureLogsForPlaybackConfigurationError,
84            R,
85        >,
86    ) -> Self {
87        match err {
88            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
89            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
90                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
91                source: err.into(),
92            }),
93        }
94    }
95}
96impl From<crate::operation::configure_logs_for_playback_configuration::ConfigureLogsForPlaybackConfigurationError> for Error {
97    fn from(err: crate::operation::configure_logs_for_playback_configuration::ConfigureLogsForPlaybackConfigurationError) -> Self {
98        match err {
99            crate::operation::configure_logs_for_playback_configuration::ConfigureLogsForPlaybackConfigurationError::Unhandled(inner) => {
100                Error::Unhandled(inner)
101            }
102        }
103    }
104}
105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_channel::CreateChannelError, R>> for Error
106where
107    R: Send + Sync + std::fmt::Debug + 'static,
108{
109    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_channel::CreateChannelError, R>) -> Self {
110        match err {
111            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
112            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
113                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
114                source: err.into(),
115            }),
116        }
117    }
118}
119impl From<crate::operation::create_channel::CreateChannelError> for Error {
120    fn from(err: crate::operation::create_channel::CreateChannelError) -> Self {
121        match err {
122            crate::operation::create_channel::CreateChannelError::Unhandled(inner) => Error::Unhandled(inner),
123        }
124    }
125}
126impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_live_source::CreateLiveSourceError, R>> for Error
127where
128    R: Send + Sync + std::fmt::Debug + 'static,
129{
130    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_live_source::CreateLiveSourceError, R>) -> Self {
131        match err {
132            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
133            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
134                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
135                source: err.into(),
136            }),
137        }
138    }
139}
140impl From<crate::operation::create_live_source::CreateLiveSourceError> for Error {
141    fn from(err: crate::operation::create_live_source::CreateLiveSourceError) -> Self {
142        match err {
143            crate::operation::create_live_source::CreateLiveSourceError::Unhandled(inner) => Error::Unhandled(inner),
144        }
145    }
146}
147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_prefetch_schedule::CreatePrefetchScheduleError, R>> for Error
148where
149    R: Send + Sync + std::fmt::Debug + 'static,
150{
151    fn from(
152        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_prefetch_schedule::CreatePrefetchScheduleError, R>,
153    ) -> Self {
154        match err {
155            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
156            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
157                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
158                source: err.into(),
159            }),
160        }
161    }
162}
163impl From<crate::operation::create_prefetch_schedule::CreatePrefetchScheduleError> for Error {
164    fn from(err: crate::operation::create_prefetch_schedule::CreatePrefetchScheduleError) -> Self {
165        match err {
166            crate::operation::create_prefetch_schedule::CreatePrefetchScheduleError::Unhandled(inner) => Error::Unhandled(inner),
167        }
168    }
169}
170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_program::CreateProgramError, R>> for Error
171where
172    R: Send + Sync + std::fmt::Debug + 'static,
173{
174    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_program::CreateProgramError, R>) -> Self {
175        match err {
176            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
177            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
178                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
179                source: err.into(),
180            }),
181        }
182    }
183}
184impl From<crate::operation::create_program::CreateProgramError> for Error {
185    fn from(err: crate::operation::create_program::CreateProgramError) -> Self {
186        match err {
187            crate::operation::create_program::CreateProgramError::Unhandled(inner) => Error::Unhandled(inner),
188        }
189    }
190}
191impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_source_location::CreateSourceLocationError, R>> for Error
192where
193    R: Send + Sync + std::fmt::Debug + 'static,
194{
195    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_source_location::CreateSourceLocationError, R>) -> Self {
196        match err {
197            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
198            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
199                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
200                source: err.into(),
201            }),
202        }
203    }
204}
205impl From<crate::operation::create_source_location::CreateSourceLocationError> for Error {
206    fn from(err: crate::operation::create_source_location::CreateSourceLocationError) -> Self {
207        match err {
208            crate::operation::create_source_location::CreateSourceLocationError::Unhandled(inner) => Error::Unhandled(inner),
209        }
210    }
211}
212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vod_source::CreateVodSourceError, R>> for Error
213where
214    R: Send + Sync + std::fmt::Debug + 'static,
215{
216    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vod_source::CreateVodSourceError, R>) -> Self {
217        match err {
218            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
219            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
220                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
221                source: err.into(),
222            }),
223        }
224    }
225}
226impl From<crate::operation::create_vod_source::CreateVodSourceError> for Error {
227    fn from(err: crate::operation::create_vod_source::CreateVodSourceError) -> Self {
228        match err {
229            crate::operation::create_vod_source::CreateVodSourceError::Unhandled(inner) => Error::Unhandled(inner),
230        }
231    }
232}
233impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_channel::DeleteChannelError, R>> for Error
234where
235    R: Send + Sync + std::fmt::Debug + 'static,
236{
237    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_channel::DeleteChannelError, R>) -> Self {
238        match err {
239            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
240            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
241                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
242                source: err.into(),
243            }),
244        }
245    }
246}
247impl From<crate::operation::delete_channel::DeleteChannelError> for Error {
248    fn from(err: crate::operation::delete_channel::DeleteChannelError) -> Self {
249        match err {
250            crate::operation::delete_channel::DeleteChannelError::Unhandled(inner) => Error::Unhandled(inner),
251        }
252    }
253}
254impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_channel_policy::DeleteChannelPolicyError, R>> for Error
255where
256    R: Send + Sync + std::fmt::Debug + 'static,
257{
258    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_channel_policy::DeleteChannelPolicyError, R>) -> Self {
259        match err {
260            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
261            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
262                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
263                source: err.into(),
264            }),
265        }
266    }
267}
268impl From<crate::operation::delete_channel_policy::DeleteChannelPolicyError> for Error {
269    fn from(err: crate::operation::delete_channel_policy::DeleteChannelPolicyError) -> Self {
270        match err {
271            crate::operation::delete_channel_policy::DeleteChannelPolicyError::Unhandled(inner) => Error::Unhandled(inner),
272        }
273    }
274}
275impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_live_source::DeleteLiveSourceError, R>> for Error
276where
277    R: Send + Sync + std::fmt::Debug + 'static,
278{
279    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_live_source::DeleteLiveSourceError, R>) -> Self {
280        match err {
281            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
282            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
283                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
284                source: err.into(),
285            }),
286        }
287    }
288}
289impl From<crate::operation::delete_live_source::DeleteLiveSourceError> for Error {
290    fn from(err: crate::operation::delete_live_source::DeleteLiveSourceError) -> Self {
291        match err {
292            crate::operation::delete_live_source::DeleteLiveSourceError::Unhandled(inner) => Error::Unhandled(inner),
293        }
294    }
295}
296impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_playback_configuration::DeletePlaybackConfigurationError, R>>
297    for Error
298where
299    R: Send + Sync + std::fmt::Debug + 'static,
300{
301    fn from(
302        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_playback_configuration::DeletePlaybackConfigurationError, R>,
303    ) -> Self {
304        match err {
305            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
306            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
307                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
308                source: err.into(),
309            }),
310        }
311    }
312}
313impl From<crate::operation::delete_playback_configuration::DeletePlaybackConfigurationError> for Error {
314    fn from(err: crate::operation::delete_playback_configuration::DeletePlaybackConfigurationError) -> Self {
315        match err {
316            crate::operation::delete_playback_configuration::DeletePlaybackConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
317        }
318    }
319}
320impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_prefetch_schedule::DeletePrefetchScheduleError, R>> for Error
321where
322    R: Send + Sync + std::fmt::Debug + 'static,
323{
324    fn from(
325        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_prefetch_schedule::DeletePrefetchScheduleError, R>,
326    ) -> Self {
327        match err {
328            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
329            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
330                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
331                source: err.into(),
332            }),
333        }
334    }
335}
336impl From<crate::operation::delete_prefetch_schedule::DeletePrefetchScheduleError> for Error {
337    fn from(err: crate::operation::delete_prefetch_schedule::DeletePrefetchScheduleError) -> Self {
338        match err {
339            crate::operation::delete_prefetch_schedule::DeletePrefetchScheduleError::Unhandled(inner) => Error::Unhandled(inner),
340        }
341    }
342}
343impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_program::DeleteProgramError, R>> for Error
344where
345    R: Send + Sync + std::fmt::Debug + 'static,
346{
347    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_program::DeleteProgramError, R>) -> Self {
348        match err {
349            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
350            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
351                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
352                source: err.into(),
353            }),
354        }
355    }
356}
357impl From<crate::operation::delete_program::DeleteProgramError> for Error {
358    fn from(err: crate::operation::delete_program::DeleteProgramError) -> Self {
359        match err {
360            crate::operation::delete_program::DeleteProgramError::Unhandled(inner) => Error::Unhandled(inner),
361        }
362    }
363}
364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_source_location::DeleteSourceLocationError, R>> for Error
365where
366    R: Send + Sync + std::fmt::Debug + 'static,
367{
368    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_source_location::DeleteSourceLocationError, R>) -> Self {
369        match err {
370            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
371            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
372                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
373                source: err.into(),
374            }),
375        }
376    }
377}
378impl From<crate::operation::delete_source_location::DeleteSourceLocationError> for Error {
379    fn from(err: crate::operation::delete_source_location::DeleteSourceLocationError) -> Self {
380        match err {
381            crate::operation::delete_source_location::DeleteSourceLocationError::Unhandled(inner) => Error::Unhandled(inner),
382        }
383    }
384}
385impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vod_source::DeleteVodSourceError, R>> for Error
386where
387    R: Send + Sync + std::fmt::Debug + 'static,
388{
389    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vod_source::DeleteVodSourceError, R>) -> Self {
390        match err {
391            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
392            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
393                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
394                source: err.into(),
395            }),
396        }
397    }
398}
399impl From<crate::operation::delete_vod_source::DeleteVodSourceError> for Error {
400    fn from(err: crate::operation::delete_vod_source::DeleteVodSourceError) -> Self {
401        match err {
402            crate::operation::delete_vod_source::DeleteVodSourceError::Unhandled(inner) => Error::Unhandled(inner),
403        }
404    }
405}
406impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_channel::DescribeChannelError, R>> for Error
407where
408    R: Send + Sync + std::fmt::Debug + 'static,
409{
410    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_channel::DescribeChannelError, R>) -> Self {
411        match err {
412            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
413            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
414                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
415                source: err.into(),
416            }),
417        }
418    }
419}
420impl From<crate::operation::describe_channel::DescribeChannelError> for Error {
421    fn from(err: crate::operation::describe_channel::DescribeChannelError) -> Self {
422        match err {
423            crate::operation::describe_channel::DescribeChannelError::Unhandled(inner) => Error::Unhandled(inner),
424        }
425    }
426}
427impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_live_source::DescribeLiveSourceError, R>> for Error
428where
429    R: Send + Sync + std::fmt::Debug + 'static,
430{
431    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_live_source::DescribeLiveSourceError, R>) -> Self {
432        match err {
433            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
434            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
435                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
436                source: err.into(),
437            }),
438        }
439    }
440}
441impl From<crate::operation::describe_live_source::DescribeLiveSourceError> for Error {
442    fn from(err: crate::operation::describe_live_source::DescribeLiveSourceError) -> Self {
443        match err {
444            crate::operation::describe_live_source::DescribeLiveSourceError::Unhandled(inner) => Error::Unhandled(inner),
445        }
446    }
447}
448impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_program::DescribeProgramError, R>> for Error
449where
450    R: Send + Sync + std::fmt::Debug + 'static,
451{
452    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_program::DescribeProgramError, R>) -> Self {
453        match err {
454            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
455            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
456                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
457                source: err.into(),
458            }),
459        }
460    }
461}
462impl From<crate::operation::describe_program::DescribeProgramError> for Error {
463    fn from(err: crate::operation::describe_program::DescribeProgramError) -> Self {
464        match err {
465            crate::operation::describe_program::DescribeProgramError::Unhandled(inner) => Error::Unhandled(inner),
466        }
467    }
468}
469impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_source_location::DescribeSourceLocationError, R>> for Error
470where
471    R: Send + Sync + std::fmt::Debug + 'static,
472{
473    fn from(
474        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_source_location::DescribeSourceLocationError, R>,
475    ) -> Self {
476        match err {
477            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
478            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
479                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
480                source: err.into(),
481            }),
482        }
483    }
484}
485impl From<crate::operation::describe_source_location::DescribeSourceLocationError> for Error {
486    fn from(err: crate::operation::describe_source_location::DescribeSourceLocationError) -> Self {
487        match err {
488            crate::operation::describe_source_location::DescribeSourceLocationError::Unhandled(inner) => Error::Unhandled(inner),
489        }
490    }
491}
492impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vod_source::DescribeVodSourceError, R>> for Error
493where
494    R: Send + Sync + std::fmt::Debug + 'static,
495{
496    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vod_source::DescribeVodSourceError, R>) -> Self {
497        match err {
498            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
499            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
500                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
501                source: err.into(),
502            }),
503        }
504    }
505}
506impl From<crate::operation::describe_vod_source::DescribeVodSourceError> for Error {
507    fn from(err: crate::operation::describe_vod_source::DescribeVodSourceError) -> Self {
508        match err {
509            crate::operation::describe_vod_source::DescribeVodSourceError::Unhandled(inner) => Error::Unhandled(inner),
510        }
511    }
512}
513impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_channel_policy::GetChannelPolicyError, R>> for Error
514where
515    R: Send + Sync + std::fmt::Debug + 'static,
516{
517    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_channel_policy::GetChannelPolicyError, R>) -> Self {
518        match err {
519            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
520            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
521                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
522                source: err.into(),
523            }),
524        }
525    }
526}
527impl From<crate::operation::get_channel_policy::GetChannelPolicyError> for Error {
528    fn from(err: crate::operation::get_channel_policy::GetChannelPolicyError) -> Self {
529        match err {
530            crate::operation::get_channel_policy::GetChannelPolicyError::Unhandled(inner) => Error::Unhandled(inner),
531        }
532    }
533}
534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_channel_schedule::GetChannelScheduleError, R>> for Error
535where
536    R: Send + Sync + std::fmt::Debug + 'static,
537{
538    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_channel_schedule::GetChannelScheduleError, R>) -> Self {
539        match err {
540            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
541            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
542                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
543                source: err.into(),
544            }),
545        }
546    }
547}
548impl From<crate::operation::get_channel_schedule::GetChannelScheduleError> for Error {
549    fn from(err: crate::operation::get_channel_schedule::GetChannelScheduleError) -> Self {
550        match err {
551            crate::operation::get_channel_schedule::GetChannelScheduleError::Unhandled(inner) => Error::Unhandled(inner),
552        }
553    }
554}
555impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_playback_configuration::GetPlaybackConfigurationError, R>>
556    for Error
557where
558    R: Send + Sync + std::fmt::Debug + 'static,
559{
560    fn from(
561        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_playback_configuration::GetPlaybackConfigurationError, R>,
562    ) -> Self {
563        match err {
564            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
565            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
566                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
567                source: err.into(),
568            }),
569        }
570    }
571}
572impl From<crate::operation::get_playback_configuration::GetPlaybackConfigurationError> for Error {
573    fn from(err: crate::operation::get_playback_configuration::GetPlaybackConfigurationError) -> Self {
574        match err {
575            crate::operation::get_playback_configuration::GetPlaybackConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
576        }
577    }
578}
579impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_prefetch_schedule::GetPrefetchScheduleError, R>> for Error
580where
581    R: Send + Sync + std::fmt::Debug + 'static,
582{
583    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_prefetch_schedule::GetPrefetchScheduleError, R>) -> Self {
584        match err {
585            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
586            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
587                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
588                source: err.into(),
589            }),
590        }
591    }
592}
593impl From<crate::operation::get_prefetch_schedule::GetPrefetchScheduleError> for Error {
594    fn from(err: crate::operation::get_prefetch_schedule::GetPrefetchScheduleError) -> Self {
595        match err {
596            crate::operation::get_prefetch_schedule::GetPrefetchScheduleError::Unhandled(inner) => Error::Unhandled(inner),
597        }
598    }
599}
600impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_alerts::ListAlertsError, R>> for Error
601where
602    R: Send + Sync + std::fmt::Debug + 'static,
603{
604    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_alerts::ListAlertsError, R>) -> Self {
605        match err {
606            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
607            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
608                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
609                source: err.into(),
610            }),
611        }
612    }
613}
614impl From<crate::operation::list_alerts::ListAlertsError> for Error {
615    fn from(err: crate::operation::list_alerts::ListAlertsError) -> Self {
616        match err {
617            crate::operation::list_alerts::ListAlertsError::Unhandled(inner) => Error::Unhandled(inner),
618        }
619    }
620}
621impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_channels::ListChannelsError, R>> for Error
622where
623    R: Send + Sync + std::fmt::Debug + 'static,
624{
625    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_channels::ListChannelsError, R>) -> Self {
626        match err {
627            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
628            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
629                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
630                source: err.into(),
631            }),
632        }
633    }
634}
635impl From<crate::operation::list_channels::ListChannelsError> for Error {
636    fn from(err: crate::operation::list_channels::ListChannelsError) -> Self {
637        match err {
638            crate::operation::list_channels::ListChannelsError::Unhandled(inner) => Error::Unhandled(inner),
639        }
640    }
641}
642impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_live_sources::ListLiveSourcesError, R>> for Error
643where
644    R: Send + Sync + std::fmt::Debug + 'static,
645{
646    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_live_sources::ListLiveSourcesError, R>) -> Self {
647        match err {
648            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
649            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
650                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
651                source: err.into(),
652            }),
653        }
654    }
655}
656impl From<crate::operation::list_live_sources::ListLiveSourcesError> for Error {
657    fn from(err: crate::operation::list_live_sources::ListLiveSourcesError) -> Self {
658        match err {
659            crate::operation::list_live_sources::ListLiveSourcesError::Unhandled(inner) => Error::Unhandled(inner),
660        }
661    }
662}
663impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_playback_configurations::ListPlaybackConfigurationsError, R>>
664    for Error
665where
666    R: Send + Sync + std::fmt::Debug + 'static,
667{
668    fn from(
669        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_playback_configurations::ListPlaybackConfigurationsError, R>,
670    ) -> Self {
671        match err {
672            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
673            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
674                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
675                source: err.into(),
676            }),
677        }
678    }
679}
680impl From<crate::operation::list_playback_configurations::ListPlaybackConfigurationsError> for Error {
681    fn from(err: crate::operation::list_playback_configurations::ListPlaybackConfigurationsError) -> Self {
682        match err {
683            crate::operation::list_playback_configurations::ListPlaybackConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
684        }
685    }
686}
687impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_prefetch_schedules::ListPrefetchSchedulesError, R>> for Error
688where
689    R: Send + Sync + std::fmt::Debug + 'static,
690{
691    fn from(
692        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_prefetch_schedules::ListPrefetchSchedulesError, R>,
693    ) -> Self {
694        match err {
695            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
696            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
697                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
698                source: err.into(),
699            }),
700        }
701    }
702}
703impl From<crate::operation::list_prefetch_schedules::ListPrefetchSchedulesError> for Error {
704    fn from(err: crate::operation::list_prefetch_schedules::ListPrefetchSchedulesError) -> Self {
705        match err {
706            crate::operation::list_prefetch_schedules::ListPrefetchSchedulesError::Unhandled(inner) => Error::Unhandled(inner),
707        }
708    }
709}
710impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_source_locations::ListSourceLocationsError, R>> for Error
711where
712    R: Send + Sync + std::fmt::Debug + 'static,
713{
714    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_source_locations::ListSourceLocationsError, R>) -> Self {
715        match err {
716            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
717            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
718                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
719                source: err.into(),
720            }),
721        }
722    }
723}
724impl From<crate::operation::list_source_locations::ListSourceLocationsError> for Error {
725    fn from(err: crate::operation::list_source_locations::ListSourceLocationsError) -> Self {
726        match err {
727            crate::operation::list_source_locations::ListSourceLocationsError::Unhandled(inner) => Error::Unhandled(inner),
728        }
729    }
730}
731impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
732where
733    R: Send + Sync + std::fmt::Debug + 'static,
734{
735    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
736        match err {
737            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
738            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
739                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
740                source: err.into(),
741            }),
742        }
743    }
744}
745impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
746    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
747        match err {
748            crate::operation::list_tags_for_resource::ListTagsForResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
749            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
750        }
751    }
752}
753impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vod_sources::ListVodSourcesError, R>> for Error
754where
755    R: Send + Sync + std::fmt::Debug + 'static,
756{
757    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vod_sources::ListVodSourcesError, R>) -> Self {
758        match err {
759            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
760            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
761                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
762                source: err.into(),
763            }),
764        }
765    }
766}
767impl From<crate::operation::list_vod_sources::ListVodSourcesError> for Error {
768    fn from(err: crate::operation::list_vod_sources::ListVodSourcesError) -> Self {
769        match err {
770            crate::operation::list_vod_sources::ListVodSourcesError::Unhandled(inner) => Error::Unhandled(inner),
771        }
772    }
773}
774impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_channel_policy::PutChannelPolicyError, R>> for Error
775where
776    R: Send + Sync + std::fmt::Debug + 'static,
777{
778    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_channel_policy::PutChannelPolicyError, R>) -> Self {
779        match err {
780            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
781            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
782                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
783                source: err.into(),
784            }),
785        }
786    }
787}
788impl From<crate::operation::put_channel_policy::PutChannelPolicyError> for Error {
789    fn from(err: crate::operation::put_channel_policy::PutChannelPolicyError) -> Self {
790        match err {
791            crate::operation::put_channel_policy::PutChannelPolicyError::Unhandled(inner) => Error::Unhandled(inner),
792        }
793    }
794}
795impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_playback_configuration::PutPlaybackConfigurationError, R>>
796    for Error
797where
798    R: Send + Sync + std::fmt::Debug + 'static,
799{
800    fn from(
801        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_playback_configuration::PutPlaybackConfigurationError, R>,
802    ) -> Self {
803        match err {
804            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
805            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
806                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
807                source: err.into(),
808            }),
809        }
810    }
811}
812impl From<crate::operation::put_playback_configuration::PutPlaybackConfigurationError> for Error {
813    fn from(err: crate::operation::put_playback_configuration::PutPlaybackConfigurationError) -> Self {
814        match err {
815            crate::operation::put_playback_configuration::PutPlaybackConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
816        }
817    }
818}
819impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_channel::StartChannelError, R>> for Error
820where
821    R: Send + Sync + std::fmt::Debug + 'static,
822{
823    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_channel::StartChannelError, R>) -> Self {
824        match err {
825            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
826            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
827                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
828                source: err.into(),
829            }),
830        }
831    }
832}
833impl From<crate::operation::start_channel::StartChannelError> for Error {
834    fn from(err: crate::operation::start_channel::StartChannelError) -> Self {
835        match err {
836            crate::operation::start_channel::StartChannelError::Unhandled(inner) => Error::Unhandled(inner),
837        }
838    }
839}
840impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_channel::StopChannelError, R>> for Error
841where
842    R: Send + Sync + std::fmt::Debug + 'static,
843{
844    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_channel::StopChannelError, R>) -> Self {
845        match err {
846            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
847            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
848                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
849                source: err.into(),
850            }),
851        }
852    }
853}
854impl From<crate::operation::stop_channel::StopChannelError> for Error {
855    fn from(err: crate::operation::stop_channel::StopChannelError) -> Self {
856        match err {
857            crate::operation::stop_channel::StopChannelError::Unhandled(inner) => Error::Unhandled(inner),
858        }
859    }
860}
861impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
862where
863    R: Send + Sync + std::fmt::Debug + 'static,
864{
865    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
866        match err {
867            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
868            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
869                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
870                source: err.into(),
871            }),
872        }
873    }
874}
875impl From<crate::operation::tag_resource::TagResourceError> for Error {
876    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
877        match err {
878            crate::operation::tag_resource::TagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
879            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
880        }
881    }
882}
883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
884where
885    R: Send + Sync + std::fmt::Debug + 'static,
886{
887    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
888        match err {
889            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
890            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
891                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
892                source: err.into(),
893            }),
894        }
895    }
896}
897impl From<crate::operation::untag_resource::UntagResourceError> for Error {
898    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
899        match err {
900            crate::operation::untag_resource::UntagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
901            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
902        }
903    }
904}
905impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_channel::UpdateChannelError, R>> for Error
906where
907    R: Send + Sync + std::fmt::Debug + 'static,
908{
909    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_channel::UpdateChannelError, R>) -> Self {
910        match err {
911            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
912            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
913                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
914                source: err.into(),
915            }),
916        }
917    }
918}
919impl From<crate::operation::update_channel::UpdateChannelError> for Error {
920    fn from(err: crate::operation::update_channel::UpdateChannelError) -> Self {
921        match err {
922            crate::operation::update_channel::UpdateChannelError::Unhandled(inner) => Error::Unhandled(inner),
923        }
924    }
925}
926impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_live_source::UpdateLiveSourceError, R>> for Error
927where
928    R: Send + Sync + std::fmt::Debug + 'static,
929{
930    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_live_source::UpdateLiveSourceError, R>) -> Self {
931        match err {
932            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
933            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
934                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
935                source: err.into(),
936            }),
937        }
938    }
939}
940impl From<crate::operation::update_live_source::UpdateLiveSourceError> for Error {
941    fn from(err: crate::operation::update_live_source::UpdateLiveSourceError) -> Self {
942        match err {
943            crate::operation::update_live_source::UpdateLiveSourceError::Unhandled(inner) => Error::Unhandled(inner),
944        }
945    }
946}
947impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_program::UpdateProgramError, R>> for Error
948where
949    R: Send + Sync + std::fmt::Debug + 'static,
950{
951    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_program::UpdateProgramError, R>) -> Self {
952        match err {
953            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
954            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
955                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
956                source: err.into(),
957            }),
958        }
959    }
960}
961impl From<crate::operation::update_program::UpdateProgramError> for Error {
962    fn from(err: crate::operation::update_program::UpdateProgramError) -> Self {
963        match err {
964            crate::operation::update_program::UpdateProgramError::Unhandled(inner) => Error::Unhandled(inner),
965        }
966    }
967}
968impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_source_location::UpdateSourceLocationError, R>> for Error
969where
970    R: Send + Sync + std::fmt::Debug + 'static,
971{
972    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_source_location::UpdateSourceLocationError, R>) -> Self {
973        match err {
974            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
975            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
976                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
977                source: err.into(),
978            }),
979        }
980    }
981}
982impl From<crate::operation::update_source_location::UpdateSourceLocationError> for Error {
983    fn from(err: crate::operation::update_source_location::UpdateSourceLocationError) -> Self {
984        match err {
985            crate::operation::update_source_location::UpdateSourceLocationError::Unhandled(inner) => Error::Unhandled(inner),
986        }
987    }
988}
989impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vod_source::UpdateVodSourceError, R>> for Error
990where
991    R: Send + Sync + std::fmt::Debug + 'static,
992{
993    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vod_source::UpdateVodSourceError, R>) -> Self {
994        match err {
995            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
996            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
997                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
998                source: err.into(),
999            }),
1000        }
1001    }
1002}
1003impl From<crate::operation::update_vod_source::UpdateVodSourceError> for Error {
1004    fn from(err: crate::operation::update_vod_source::UpdateVodSourceError) -> Self {
1005        match err {
1006            crate::operation::update_vod_source::UpdateVodSourceError::Unhandled(inner) => Error::Unhandled(inner),
1007        }
1008    }
1009}
1010impl ::std::error::Error for Error {
1011    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1012        match self {
1013            Error::BadRequestException(inner) => inner.source(),
1014            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1015        }
1016    }
1017}
1018impl ::aws_types::request_id::RequestId for Error {
1019    fn request_id(&self) -> Option<&str> {
1020        match self {
1021            Self::BadRequestException(e) => e.request_id(),
1022            Self::Unhandled(e) => e.meta.request_id(),
1023        }
1024    }
1025}