1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 BadRequestException(crate::types::error::BadRequestException),
8 ConflictException(crate::types::error::ConflictException),
10 ForbiddenException(crate::types::error::ForbiddenException),
12 InternalServerErrorException(crate::types::error::InternalServerErrorException),
14 MethodNotAllowedException(crate::types::error::MethodNotAllowedException),
16 NotFoundException(crate::types::error::NotFoundException),
18 PayloadTooLargeException(crate::types::error::PayloadTooLargeException),
20 TooManyRequestsException(crate::types::error::TooManyRequestsException),
22 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
24 variable wildcard pattern and check `.code()`:
25 \
26 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
27 \
28 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
29 Unhandled(crate::error::sealed_unhandled::Unhandled),
30}
31impl ::std::fmt::Display for Error {
32 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33 match self {
34 Error::BadRequestException(inner) => inner.fmt(f),
35 Error::ConflictException(inner) => inner.fmt(f),
36 Error::ForbiddenException(inner) => inner.fmt(f),
37 Error::InternalServerErrorException(inner) => inner.fmt(f),
38 Error::MethodNotAllowedException(inner) => inner.fmt(f),
39 Error::NotFoundException(inner) => inner.fmt(f),
40 Error::PayloadTooLargeException(inner) => inner.fmt(f),
41 Error::TooManyRequestsException(inner) => inner.fmt(f),
42 Error::Unhandled(_) => {
43 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
44 write!(f, "unhandled error ({code})")
45 } else {
46 f.write_str("unhandled error")
47 }
48 }
49 }
50 }
51}
52impl From<::aws_smithy_types::error::operation::BuildError> for Error {
53 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
54 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
55 source: value.into(),
56 meta: ::std::default::Default::default(),
57 })
58 }
59}
60impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
61 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
62 match self {
63 Self::BadRequestException(inner) => inner.meta(),
64 Self::ConflictException(inner) => inner.meta(),
65 Self::ForbiddenException(inner) => inner.meta(),
66 Self::InternalServerErrorException(inner) => inner.meta(),
67 Self::MethodNotAllowedException(inner) => inner.meta(),
68 Self::NotFoundException(inner) => inner.meta(),
69 Self::PayloadTooLargeException(inner) => inner.meta(),
70 Self::TooManyRequestsException(inner) => inner.meta(),
71 Self::Unhandled(inner) => &inner.meta,
72 }
73 }
74}
75impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app::CreateAppError, R>> for Error
76where
77 R: Send + Sync + std::fmt::Debug + 'static,
78{
79 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app::CreateAppError, R>) -> Self {
80 match err {
81 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
82 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
83 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
84 source: err.into(),
85 }),
86 }
87 }
88}
89impl From<crate::operation::create_app::CreateAppError> for Error {
90 fn from(err: crate::operation::create_app::CreateAppError) -> Self {
91 match err {
92 crate::operation::create_app::CreateAppError::BadRequestException(inner) => Error::BadRequestException(inner),
93 crate::operation::create_app::CreateAppError::ForbiddenException(inner) => Error::ForbiddenException(inner),
94 crate::operation::create_app::CreateAppError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
95 crate::operation::create_app::CreateAppError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
96 crate::operation::create_app::CreateAppError::NotFoundException(inner) => Error::NotFoundException(inner),
97 crate::operation::create_app::CreateAppError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
98 crate::operation::create_app::CreateAppError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
99 crate::operation::create_app::CreateAppError::Unhandled(inner) => Error::Unhandled(inner),
100 }
101 }
102}
103impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_campaign::CreateCampaignError, R>> for Error
104where
105 R: Send + Sync + std::fmt::Debug + 'static,
106{
107 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_campaign::CreateCampaignError, R>) -> Self {
108 match err {
109 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
110 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
111 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
112 source: err.into(),
113 }),
114 }
115 }
116}
117impl From<crate::operation::create_campaign::CreateCampaignError> for Error {
118 fn from(err: crate::operation::create_campaign::CreateCampaignError) -> Self {
119 match err {
120 crate::operation::create_campaign::CreateCampaignError::BadRequestException(inner) => Error::BadRequestException(inner),
121 crate::operation::create_campaign::CreateCampaignError::ForbiddenException(inner) => Error::ForbiddenException(inner),
122 crate::operation::create_campaign::CreateCampaignError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
123 crate::operation::create_campaign::CreateCampaignError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
124 crate::operation::create_campaign::CreateCampaignError::NotFoundException(inner) => Error::NotFoundException(inner),
125 crate::operation::create_campaign::CreateCampaignError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
126 crate::operation::create_campaign::CreateCampaignError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
127 crate::operation::create_campaign::CreateCampaignError::Unhandled(inner) => Error::Unhandled(inner),
128 }
129 }
130}
131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_email_template::CreateEmailTemplateError, R>> for Error
132where
133 R: Send + Sync + std::fmt::Debug + 'static,
134{
135 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_email_template::CreateEmailTemplateError, R>) -> Self {
136 match err {
137 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
138 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
139 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
140 source: err.into(),
141 }),
142 }
143 }
144}
145impl From<crate::operation::create_email_template::CreateEmailTemplateError> for Error {
146 fn from(err: crate::operation::create_email_template::CreateEmailTemplateError) -> Self {
147 match err {
148 crate::operation::create_email_template::CreateEmailTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
149 crate::operation::create_email_template::CreateEmailTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
150 crate::operation::create_email_template::CreateEmailTemplateError::InternalServerErrorException(inner) => {
151 Error::InternalServerErrorException(inner)
152 }
153 crate::operation::create_email_template::CreateEmailTemplateError::MethodNotAllowedException(inner) => {
154 Error::MethodNotAllowedException(inner)
155 }
156 crate::operation::create_email_template::CreateEmailTemplateError::TooManyRequestsException(inner) => {
157 Error::TooManyRequestsException(inner)
158 }
159 crate::operation::create_email_template::CreateEmailTemplateError::Unhandled(inner) => Error::Unhandled(inner),
160 }
161 }
162}
163impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_export_job::CreateExportJobError, R>> for Error
164where
165 R: Send + Sync + std::fmt::Debug + 'static,
166{
167 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_export_job::CreateExportJobError, R>) -> Self {
168 match err {
169 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
170 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
171 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
172 source: err.into(),
173 }),
174 }
175 }
176}
177impl From<crate::operation::create_export_job::CreateExportJobError> for Error {
178 fn from(err: crate::operation::create_export_job::CreateExportJobError) -> Self {
179 match err {
180 crate::operation::create_export_job::CreateExportJobError::BadRequestException(inner) => Error::BadRequestException(inner),
181 crate::operation::create_export_job::CreateExportJobError::ForbiddenException(inner) => Error::ForbiddenException(inner),
182 crate::operation::create_export_job::CreateExportJobError::InternalServerErrorException(inner) => {
183 Error::InternalServerErrorException(inner)
184 }
185 crate::operation::create_export_job::CreateExportJobError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
186 crate::operation::create_export_job::CreateExportJobError::NotFoundException(inner) => Error::NotFoundException(inner),
187 crate::operation::create_export_job::CreateExportJobError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
188 crate::operation::create_export_job::CreateExportJobError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
189 crate::operation::create_export_job::CreateExportJobError::Unhandled(inner) => Error::Unhandled(inner),
190 }
191 }
192}
193impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_import_job::CreateImportJobError, R>> for Error
194where
195 R: Send + Sync + std::fmt::Debug + 'static,
196{
197 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_import_job::CreateImportJobError, R>) -> Self {
198 match err {
199 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
200 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
201 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
202 source: err.into(),
203 }),
204 }
205 }
206}
207impl From<crate::operation::create_import_job::CreateImportJobError> for Error {
208 fn from(err: crate::operation::create_import_job::CreateImportJobError) -> Self {
209 match err {
210 crate::operation::create_import_job::CreateImportJobError::BadRequestException(inner) => Error::BadRequestException(inner),
211 crate::operation::create_import_job::CreateImportJobError::ForbiddenException(inner) => Error::ForbiddenException(inner),
212 crate::operation::create_import_job::CreateImportJobError::InternalServerErrorException(inner) => {
213 Error::InternalServerErrorException(inner)
214 }
215 crate::operation::create_import_job::CreateImportJobError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
216 crate::operation::create_import_job::CreateImportJobError::NotFoundException(inner) => Error::NotFoundException(inner),
217 crate::operation::create_import_job::CreateImportJobError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
218 crate::operation::create_import_job::CreateImportJobError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
219 crate::operation::create_import_job::CreateImportJobError::Unhandled(inner) => Error::Unhandled(inner),
220 }
221 }
222}
223impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_in_app_template::CreateInAppTemplateError, R>> for Error
224where
225 R: Send + Sync + std::fmt::Debug + 'static,
226{
227 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_in_app_template::CreateInAppTemplateError, R>) -> Self {
228 match err {
229 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
230 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
231 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
232 source: err.into(),
233 }),
234 }
235 }
236}
237impl From<crate::operation::create_in_app_template::CreateInAppTemplateError> for Error {
238 fn from(err: crate::operation::create_in_app_template::CreateInAppTemplateError) -> Self {
239 match err {
240 crate::operation::create_in_app_template::CreateInAppTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
241 crate::operation::create_in_app_template::CreateInAppTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
242 crate::operation::create_in_app_template::CreateInAppTemplateError::InternalServerErrorException(inner) => {
243 Error::InternalServerErrorException(inner)
244 }
245 crate::operation::create_in_app_template::CreateInAppTemplateError::MethodNotAllowedException(inner) => {
246 Error::MethodNotAllowedException(inner)
247 }
248 crate::operation::create_in_app_template::CreateInAppTemplateError::TooManyRequestsException(inner) => {
249 Error::TooManyRequestsException(inner)
250 }
251 crate::operation::create_in_app_template::CreateInAppTemplateError::Unhandled(inner) => Error::Unhandled(inner),
252 }
253 }
254}
255impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_journey::CreateJourneyError, R>> for Error
256where
257 R: Send + Sync + std::fmt::Debug + 'static,
258{
259 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_journey::CreateJourneyError, R>) -> Self {
260 match err {
261 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
262 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
263 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
264 source: err.into(),
265 }),
266 }
267 }
268}
269impl From<crate::operation::create_journey::CreateJourneyError> for Error {
270 fn from(err: crate::operation::create_journey::CreateJourneyError) -> Self {
271 match err {
272 crate::operation::create_journey::CreateJourneyError::BadRequestException(inner) => Error::BadRequestException(inner),
273 crate::operation::create_journey::CreateJourneyError::ForbiddenException(inner) => Error::ForbiddenException(inner),
274 crate::operation::create_journey::CreateJourneyError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
275 crate::operation::create_journey::CreateJourneyError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
276 crate::operation::create_journey::CreateJourneyError::NotFoundException(inner) => Error::NotFoundException(inner),
277 crate::operation::create_journey::CreateJourneyError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
278 crate::operation::create_journey::CreateJourneyError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
279 crate::operation::create_journey::CreateJourneyError::Unhandled(inner) => Error::Unhandled(inner),
280 }
281 }
282}
283impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_push_template::CreatePushTemplateError, R>> for Error
284where
285 R: Send + Sync + std::fmt::Debug + 'static,
286{
287 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_push_template::CreatePushTemplateError, R>) -> Self {
288 match err {
289 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
290 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
291 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
292 source: err.into(),
293 }),
294 }
295 }
296}
297impl From<crate::operation::create_push_template::CreatePushTemplateError> for Error {
298 fn from(err: crate::operation::create_push_template::CreatePushTemplateError) -> Self {
299 match err {
300 crate::operation::create_push_template::CreatePushTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
301 crate::operation::create_push_template::CreatePushTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
302 crate::operation::create_push_template::CreatePushTemplateError::InternalServerErrorException(inner) => {
303 Error::InternalServerErrorException(inner)
304 }
305 crate::operation::create_push_template::CreatePushTemplateError::MethodNotAllowedException(inner) => {
306 Error::MethodNotAllowedException(inner)
307 }
308 crate::operation::create_push_template::CreatePushTemplateError::TooManyRequestsException(inner) => {
309 Error::TooManyRequestsException(inner)
310 }
311 crate::operation::create_push_template::CreatePushTemplateError::Unhandled(inner) => Error::Unhandled(inner),
312 }
313 }
314}
315impl<R>
316 From<
317 ::aws_smithy_runtime_api::client::result::SdkError<
318 crate::operation::create_recommender_configuration::CreateRecommenderConfigurationError,
319 R,
320 >,
321 > for Error
322where
323 R: Send + Sync + std::fmt::Debug + 'static,
324{
325 fn from(
326 err: ::aws_smithy_runtime_api::client::result::SdkError<
327 crate::operation::create_recommender_configuration::CreateRecommenderConfigurationError,
328 R,
329 >,
330 ) -> Self {
331 match err {
332 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
333 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
334 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
335 source: err.into(),
336 }),
337 }
338 }
339}
340impl From<crate::operation::create_recommender_configuration::CreateRecommenderConfigurationError> for Error {
341 fn from(err: crate::operation::create_recommender_configuration::CreateRecommenderConfigurationError) -> Self {
342 match err {
343 crate::operation::create_recommender_configuration::CreateRecommenderConfigurationError::BadRequestException(inner) => {
344 Error::BadRequestException(inner)
345 }
346 crate::operation::create_recommender_configuration::CreateRecommenderConfigurationError::ForbiddenException(inner) => {
347 Error::ForbiddenException(inner)
348 }
349 crate::operation::create_recommender_configuration::CreateRecommenderConfigurationError::InternalServerErrorException(inner) => {
350 Error::InternalServerErrorException(inner)
351 }
352 crate::operation::create_recommender_configuration::CreateRecommenderConfigurationError::MethodNotAllowedException(inner) => {
353 Error::MethodNotAllowedException(inner)
354 }
355 crate::operation::create_recommender_configuration::CreateRecommenderConfigurationError::NotFoundException(inner) => {
356 Error::NotFoundException(inner)
357 }
358 crate::operation::create_recommender_configuration::CreateRecommenderConfigurationError::PayloadTooLargeException(inner) => {
359 Error::PayloadTooLargeException(inner)
360 }
361 crate::operation::create_recommender_configuration::CreateRecommenderConfigurationError::TooManyRequestsException(inner) => {
362 Error::TooManyRequestsException(inner)
363 }
364 crate::operation::create_recommender_configuration::CreateRecommenderConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
365 }
366 }
367}
368impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_segment::CreateSegmentError, R>> for Error
369where
370 R: Send + Sync + std::fmt::Debug + 'static,
371{
372 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_segment::CreateSegmentError, R>) -> Self {
373 match err {
374 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
375 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
376 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
377 source: err.into(),
378 }),
379 }
380 }
381}
382impl From<crate::operation::create_segment::CreateSegmentError> for Error {
383 fn from(err: crate::operation::create_segment::CreateSegmentError) -> Self {
384 match err {
385 crate::operation::create_segment::CreateSegmentError::BadRequestException(inner) => Error::BadRequestException(inner),
386 crate::operation::create_segment::CreateSegmentError::ForbiddenException(inner) => Error::ForbiddenException(inner),
387 crate::operation::create_segment::CreateSegmentError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
388 crate::operation::create_segment::CreateSegmentError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
389 crate::operation::create_segment::CreateSegmentError::NotFoundException(inner) => Error::NotFoundException(inner),
390 crate::operation::create_segment::CreateSegmentError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
391 crate::operation::create_segment::CreateSegmentError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
392 crate::operation::create_segment::CreateSegmentError::Unhandled(inner) => Error::Unhandled(inner),
393 }
394 }
395}
396impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_sms_template::CreateSmsTemplateError, R>> for Error
397where
398 R: Send + Sync + std::fmt::Debug + 'static,
399{
400 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_sms_template::CreateSmsTemplateError, R>) -> Self {
401 match err {
402 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
403 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
404 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
405 source: err.into(),
406 }),
407 }
408 }
409}
410impl From<crate::operation::create_sms_template::CreateSmsTemplateError> for Error {
411 fn from(err: crate::operation::create_sms_template::CreateSmsTemplateError) -> Self {
412 match err {
413 crate::operation::create_sms_template::CreateSmsTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
414 crate::operation::create_sms_template::CreateSmsTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
415 crate::operation::create_sms_template::CreateSmsTemplateError::InternalServerErrorException(inner) => {
416 Error::InternalServerErrorException(inner)
417 }
418 crate::operation::create_sms_template::CreateSmsTemplateError::MethodNotAllowedException(inner) => {
419 Error::MethodNotAllowedException(inner)
420 }
421 crate::operation::create_sms_template::CreateSmsTemplateError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
422 crate::operation::create_sms_template::CreateSmsTemplateError::Unhandled(inner) => Error::Unhandled(inner),
423 }
424 }
425}
426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_voice_template::CreateVoiceTemplateError, R>> for Error
427where
428 R: Send + Sync + std::fmt::Debug + 'static,
429{
430 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_voice_template::CreateVoiceTemplateError, R>) -> Self {
431 match err {
432 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
433 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
434 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
435 source: err.into(),
436 }),
437 }
438 }
439}
440impl From<crate::operation::create_voice_template::CreateVoiceTemplateError> for Error {
441 fn from(err: crate::operation::create_voice_template::CreateVoiceTemplateError) -> Self {
442 match err {
443 crate::operation::create_voice_template::CreateVoiceTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
444 crate::operation::create_voice_template::CreateVoiceTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
445 crate::operation::create_voice_template::CreateVoiceTemplateError::InternalServerErrorException(inner) => {
446 Error::InternalServerErrorException(inner)
447 }
448 crate::operation::create_voice_template::CreateVoiceTemplateError::MethodNotAllowedException(inner) => {
449 Error::MethodNotAllowedException(inner)
450 }
451 crate::operation::create_voice_template::CreateVoiceTemplateError::TooManyRequestsException(inner) => {
452 Error::TooManyRequestsException(inner)
453 }
454 crate::operation::create_voice_template::CreateVoiceTemplateError::Unhandled(inner) => Error::Unhandled(inner),
455 }
456 }
457}
458impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_adm_channel::DeleteAdmChannelError, R>> for Error
459where
460 R: Send + Sync + std::fmt::Debug + 'static,
461{
462 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_adm_channel::DeleteAdmChannelError, R>) -> Self {
463 match err {
464 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
465 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
466 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
467 source: err.into(),
468 }),
469 }
470 }
471}
472impl From<crate::operation::delete_adm_channel::DeleteAdmChannelError> for Error {
473 fn from(err: crate::operation::delete_adm_channel::DeleteAdmChannelError) -> Self {
474 match err {
475 crate::operation::delete_adm_channel::DeleteAdmChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
476 crate::operation::delete_adm_channel::DeleteAdmChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
477 crate::operation::delete_adm_channel::DeleteAdmChannelError::InternalServerErrorException(inner) => {
478 Error::InternalServerErrorException(inner)
479 }
480 crate::operation::delete_adm_channel::DeleteAdmChannelError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
481 crate::operation::delete_adm_channel::DeleteAdmChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
482 crate::operation::delete_adm_channel::DeleteAdmChannelError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
483 crate::operation::delete_adm_channel::DeleteAdmChannelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
484 crate::operation::delete_adm_channel::DeleteAdmChannelError::Unhandled(inner) => Error::Unhandled(inner),
485 }
486 }
487}
488impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_apns_channel::DeleteApnsChannelError, R>> for Error
489where
490 R: Send + Sync + std::fmt::Debug + 'static,
491{
492 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_apns_channel::DeleteApnsChannelError, R>) -> Self {
493 match err {
494 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
495 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
496 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
497 source: err.into(),
498 }),
499 }
500 }
501}
502impl From<crate::operation::delete_apns_channel::DeleteApnsChannelError> for Error {
503 fn from(err: crate::operation::delete_apns_channel::DeleteApnsChannelError) -> Self {
504 match err {
505 crate::operation::delete_apns_channel::DeleteApnsChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
506 crate::operation::delete_apns_channel::DeleteApnsChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
507 crate::operation::delete_apns_channel::DeleteApnsChannelError::InternalServerErrorException(inner) => {
508 Error::InternalServerErrorException(inner)
509 }
510 crate::operation::delete_apns_channel::DeleteApnsChannelError::MethodNotAllowedException(inner) => {
511 Error::MethodNotAllowedException(inner)
512 }
513 crate::operation::delete_apns_channel::DeleteApnsChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
514 crate::operation::delete_apns_channel::DeleteApnsChannelError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
515 crate::operation::delete_apns_channel::DeleteApnsChannelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
516 crate::operation::delete_apns_channel::DeleteApnsChannelError::Unhandled(inner) => Error::Unhandled(inner),
517 }
518 }
519}
520impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_apns_sandbox_channel::DeleteApnsSandboxChannelError, R>>
521 for Error
522where
523 R: Send + Sync + std::fmt::Debug + 'static,
524{
525 fn from(
526 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_apns_sandbox_channel::DeleteApnsSandboxChannelError, R>,
527 ) -> Self {
528 match err {
529 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
530 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
531 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
532 source: err.into(),
533 }),
534 }
535 }
536}
537impl From<crate::operation::delete_apns_sandbox_channel::DeleteApnsSandboxChannelError> for Error {
538 fn from(err: crate::operation::delete_apns_sandbox_channel::DeleteApnsSandboxChannelError) -> Self {
539 match err {
540 crate::operation::delete_apns_sandbox_channel::DeleteApnsSandboxChannelError::BadRequestException(inner) => {
541 Error::BadRequestException(inner)
542 }
543 crate::operation::delete_apns_sandbox_channel::DeleteApnsSandboxChannelError::ForbiddenException(inner) => {
544 Error::ForbiddenException(inner)
545 }
546 crate::operation::delete_apns_sandbox_channel::DeleteApnsSandboxChannelError::InternalServerErrorException(inner) => {
547 Error::InternalServerErrorException(inner)
548 }
549 crate::operation::delete_apns_sandbox_channel::DeleteApnsSandboxChannelError::MethodNotAllowedException(inner) => {
550 Error::MethodNotAllowedException(inner)
551 }
552 crate::operation::delete_apns_sandbox_channel::DeleteApnsSandboxChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
553 crate::operation::delete_apns_sandbox_channel::DeleteApnsSandboxChannelError::PayloadTooLargeException(inner) => {
554 Error::PayloadTooLargeException(inner)
555 }
556 crate::operation::delete_apns_sandbox_channel::DeleteApnsSandboxChannelError::TooManyRequestsException(inner) => {
557 Error::TooManyRequestsException(inner)
558 }
559 crate::operation::delete_apns_sandbox_channel::DeleteApnsSandboxChannelError::Unhandled(inner) => Error::Unhandled(inner),
560 }
561 }
562}
563impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_apns_voip_channel::DeleteApnsVoipChannelError, R>> for Error
564where
565 R: Send + Sync + std::fmt::Debug + 'static,
566{
567 fn from(
568 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_apns_voip_channel::DeleteApnsVoipChannelError, R>,
569 ) -> Self {
570 match err {
571 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
572 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
573 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
574 source: err.into(),
575 }),
576 }
577 }
578}
579impl From<crate::operation::delete_apns_voip_channel::DeleteApnsVoipChannelError> for Error {
580 fn from(err: crate::operation::delete_apns_voip_channel::DeleteApnsVoipChannelError) -> Self {
581 match err {
582 crate::operation::delete_apns_voip_channel::DeleteApnsVoipChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
583 crate::operation::delete_apns_voip_channel::DeleteApnsVoipChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
584 crate::operation::delete_apns_voip_channel::DeleteApnsVoipChannelError::InternalServerErrorException(inner) => {
585 Error::InternalServerErrorException(inner)
586 }
587 crate::operation::delete_apns_voip_channel::DeleteApnsVoipChannelError::MethodNotAllowedException(inner) => {
588 Error::MethodNotAllowedException(inner)
589 }
590 crate::operation::delete_apns_voip_channel::DeleteApnsVoipChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
591 crate::operation::delete_apns_voip_channel::DeleteApnsVoipChannelError::PayloadTooLargeException(inner) => {
592 Error::PayloadTooLargeException(inner)
593 }
594 crate::operation::delete_apns_voip_channel::DeleteApnsVoipChannelError::TooManyRequestsException(inner) => {
595 Error::TooManyRequestsException(inner)
596 }
597 crate::operation::delete_apns_voip_channel::DeleteApnsVoipChannelError::Unhandled(inner) => Error::Unhandled(inner),
598 }
599 }
600}
601impl<R>
602 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_apns_voip_sandbox_channel::DeleteApnsVoipSandboxChannelError, R>>
603 for Error
604where
605 R: Send + Sync + std::fmt::Debug + 'static,
606{
607 fn from(
608 err: ::aws_smithy_runtime_api::client::result::SdkError<
609 crate::operation::delete_apns_voip_sandbox_channel::DeleteApnsVoipSandboxChannelError,
610 R,
611 >,
612 ) -> Self {
613 match err {
614 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
615 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
616 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
617 source: err.into(),
618 }),
619 }
620 }
621}
622impl From<crate::operation::delete_apns_voip_sandbox_channel::DeleteApnsVoipSandboxChannelError> for Error {
623 fn from(err: crate::operation::delete_apns_voip_sandbox_channel::DeleteApnsVoipSandboxChannelError) -> Self {
624 match err {
625 crate::operation::delete_apns_voip_sandbox_channel::DeleteApnsVoipSandboxChannelError::BadRequestException(inner) => {
626 Error::BadRequestException(inner)
627 }
628 crate::operation::delete_apns_voip_sandbox_channel::DeleteApnsVoipSandboxChannelError::ForbiddenException(inner) => {
629 Error::ForbiddenException(inner)
630 }
631 crate::operation::delete_apns_voip_sandbox_channel::DeleteApnsVoipSandboxChannelError::InternalServerErrorException(inner) => {
632 Error::InternalServerErrorException(inner)
633 }
634 crate::operation::delete_apns_voip_sandbox_channel::DeleteApnsVoipSandboxChannelError::MethodNotAllowedException(inner) => {
635 Error::MethodNotAllowedException(inner)
636 }
637 crate::operation::delete_apns_voip_sandbox_channel::DeleteApnsVoipSandboxChannelError::NotFoundException(inner) => {
638 Error::NotFoundException(inner)
639 }
640 crate::operation::delete_apns_voip_sandbox_channel::DeleteApnsVoipSandboxChannelError::PayloadTooLargeException(inner) => {
641 Error::PayloadTooLargeException(inner)
642 }
643 crate::operation::delete_apns_voip_sandbox_channel::DeleteApnsVoipSandboxChannelError::TooManyRequestsException(inner) => {
644 Error::TooManyRequestsException(inner)
645 }
646 crate::operation::delete_apns_voip_sandbox_channel::DeleteApnsVoipSandboxChannelError::Unhandled(inner) => Error::Unhandled(inner),
647 }
648 }
649}
650impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app::DeleteAppError, R>> for Error
651where
652 R: Send + Sync + std::fmt::Debug + 'static,
653{
654 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app::DeleteAppError, R>) -> Self {
655 match err {
656 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
657 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
658 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
659 source: err.into(),
660 }),
661 }
662 }
663}
664impl From<crate::operation::delete_app::DeleteAppError> for Error {
665 fn from(err: crate::operation::delete_app::DeleteAppError) -> Self {
666 match err {
667 crate::operation::delete_app::DeleteAppError::BadRequestException(inner) => Error::BadRequestException(inner),
668 crate::operation::delete_app::DeleteAppError::ForbiddenException(inner) => Error::ForbiddenException(inner),
669 crate::operation::delete_app::DeleteAppError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
670 crate::operation::delete_app::DeleteAppError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
671 crate::operation::delete_app::DeleteAppError::NotFoundException(inner) => Error::NotFoundException(inner),
672 crate::operation::delete_app::DeleteAppError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
673 crate::operation::delete_app::DeleteAppError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
674 crate::operation::delete_app::DeleteAppError::Unhandled(inner) => Error::Unhandled(inner),
675 }
676 }
677}
678impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_baidu_channel::DeleteBaiduChannelError, R>> for Error
679where
680 R: Send + Sync + std::fmt::Debug + 'static,
681{
682 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_baidu_channel::DeleteBaiduChannelError, R>) -> Self {
683 match err {
684 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
685 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
686 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
687 source: err.into(),
688 }),
689 }
690 }
691}
692impl From<crate::operation::delete_baidu_channel::DeleteBaiduChannelError> for Error {
693 fn from(err: crate::operation::delete_baidu_channel::DeleteBaiduChannelError) -> Self {
694 match err {
695 crate::operation::delete_baidu_channel::DeleteBaiduChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
696 crate::operation::delete_baidu_channel::DeleteBaiduChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
697 crate::operation::delete_baidu_channel::DeleteBaiduChannelError::InternalServerErrorException(inner) => {
698 Error::InternalServerErrorException(inner)
699 }
700 crate::operation::delete_baidu_channel::DeleteBaiduChannelError::MethodNotAllowedException(inner) => {
701 Error::MethodNotAllowedException(inner)
702 }
703 crate::operation::delete_baidu_channel::DeleteBaiduChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
704 crate::operation::delete_baidu_channel::DeleteBaiduChannelError::PayloadTooLargeException(inner) => {
705 Error::PayloadTooLargeException(inner)
706 }
707 crate::operation::delete_baidu_channel::DeleteBaiduChannelError::TooManyRequestsException(inner) => {
708 Error::TooManyRequestsException(inner)
709 }
710 crate::operation::delete_baidu_channel::DeleteBaiduChannelError::Unhandled(inner) => Error::Unhandled(inner),
711 }
712 }
713}
714impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_campaign::DeleteCampaignError, R>> for Error
715where
716 R: Send + Sync + std::fmt::Debug + 'static,
717{
718 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_campaign::DeleteCampaignError, R>) -> Self {
719 match err {
720 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
721 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
722 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
723 source: err.into(),
724 }),
725 }
726 }
727}
728impl From<crate::operation::delete_campaign::DeleteCampaignError> for Error {
729 fn from(err: crate::operation::delete_campaign::DeleteCampaignError) -> Self {
730 match err {
731 crate::operation::delete_campaign::DeleteCampaignError::BadRequestException(inner) => Error::BadRequestException(inner),
732 crate::operation::delete_campaign::DeleteCampaignError::ForbiddenException(inner) => Error::ForbiddenException(inner),
733 crate::operation::delete_campaign::DeleteCampaignError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
734 crate::operation::delete_campaign::DeleteCampaignError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
735 crate::operation::delete_campaign::DeleteCampaignError::NotFoundException(inner) => Error::NotFoundException(inner),
736 crate::operation::delete_campaign::DeleteCampaignError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
737 crate::operation::delete_campaign::DeleteCampaignError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
738 crate::operation::delete_campaign::DeleteCampaignError::Unhandled(inner) => Error::Unhandled(inner),
739 }
740 }
741}
742impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_email_channel::DeleteEmailChannelError, R>> for Error
743where
744 R: Send + Sync + std::fmt::Debug + 'static,
745{
746 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_email_channel::DeleteEmailChannelError, R>) -> Self {
747 match err {
748 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
749 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
750 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
751 source: err.into(),
752 }),
753 }
754 }
755}
756impl From<crate::operation::delete_email_channel::DeleteEmailChannelError> for Error {
757 fn from(err: crate::operation::delete_email_channel::DeleteEmailChannelError) -> Self {
758 match err {
759 crate::operation::delete_email_channel::DeleteEmailChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
760 crate::operation::delete_email_channel::DeleteEmailChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
761 crate::operation::delete_email_channel::DeleteEmailChannelError::InternalServerErrorException(inner) => {
762 Error::InternalServerErrorException(inner)
763 }
764 crate::operation::delete_email_channel::DeleteEmailChannelError::MethodNotAllowedException(inner) => {
765 Error::MethodNotAllowedException(inner)
766 }
767 crate::operation::delete_email_channel::DeleteEmailChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
768 crate::operation::delete_email_channel::DeleteEmailChannelError::PayloadTooLargeException(inner) => {
769 Error::PayloadTooLargeException(inner)
770 }
771 crate::operation::delete_email_channel::DeleteEmailChannelError::TooManyRequestsException(inner) => {
772 Error::TooManyRequestsException(inner)
773 }
774 crate::operation::delete_email_channel::DeleteEmailChannelError::Unhandled(inner) => Error::Unhandled(inner),
775 }
776 }
777}
778impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_email_template::DeleteEmailTemplateError, R>> for Error
779where
780 R: Send + Sync + std::fmt::Debug + 'static,
781{
782 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_email_template::DeleteEmailTemplateError, R>) -> Self {
783 match err {
784 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
785 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
786 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
787 source: err.into(),
788 }),
789 }
790 }
791}
792impl From<crate::operation::delete_email_template::DeleteEmailTemplateError> for Error {
793 fn from(err: crate::operation::delete_email_template::DeleteEmailTemplateError) -> Self {
794 match err {
795 crate::operation::delete_email_template::DeleteEmailTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
796 crate::operation::delete_email_template::DeleteEmailTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
797 crate::operation::delete_email_template::DeleteEmailTemplateError::InternalServerErrorException(inner) => {
798 Error::InternalServerErrorException(inner)
799 }
800 crate::operation::delete_email_template::DeleteEmailTemplateError::MethodNotAllowedException(inner) => {
801 Error::MethodNotAllowedException(inner)
802 }
803 crate::operation::delete_email_template::DeleteEmailTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
804 crate::operation::delete_email_template::DeleteEmailTemplateError::PayloadTooLargeException(inner) => {
805 Error::PayloadTooLargeException(inner)
806 }
807 crate::operation::delete_email_template::DeleteEmailTemplateError::TooManyRequestsException(inner) => {
808 Error::TooManyRequestsException(inner)
809 }
810 crate::operation::delete_email_template::DeleteEmailTemplateError::Unhandled(inner) => Error::Unhandled(inner),
811 }
812 }
813}
814impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint::DeleteEndpointError, R>> for Error
815where
816 R: Send + Sync + std::fmt::Debug + 'static,
817{
818 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint::DeleteEndpointError, R>) -> Self {
819 match err {
820 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
821 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
822 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
823 source: err.into(),
824 }),
825 }
826 }
827}
828impl From<crate::operation::delete_endpoint::DeleteEndpointError> for Error {
829 fn from(err: crate::operation::delete_endpoint::DeleteEndpointError) -> Self {
830 match err {
831 crate::operation::delete_endpoint::DeleteEndpointError::BadRequestException(inner) => Error::BadRequestException(inner),
832 crate::operation::delete_endpoint::DeleteEndpointError::ForbiddenException(inner) => Error::ForbiddenException(inner),
833 crate::operation::delete_endpoint::DeleteEndpointError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
834 crate::operation::delete_endpoint::DeleteEndpointError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
835 crate::operation::delete_endpoint::DeleteEndpointError::NotFoundException(inner) => Error::NotFoundException(inner),
836 crate::operation::delete_endpoint::DeleteEndpointError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
837 crate::operation::delete_endpoint::DeleteEndpointError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
838 crate::operation::delete_endpoint::DeleteEndpointError::Unhandled(inner) => Error::Unhandled(inner),
839 }
840 }
841}
842impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_stream::DeleteEventStreamError, R>> for Error
843where
844 R: Send + Sync + std::fmt::Debug + 'static,
845{
846 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_stream::DeleteEventStreamError, R>) -> Self {
847 match err {
848 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
849 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
850 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
851 source: err.into(),
852 }),
853 }
854 }
855}
856impl From<crate::operation::delete_event_stream::DeleteEventStreamError> for Error {
857 fn from(err: crate::operation::delete_event_stream::DeleteEventStreamError) -> Self {
858 match err {
859 crate::operation::delete_event_stream::DeleteEventStreamError::BadRequestException(inner) => Error::BadRequestException(inner),
860 crate::operation::delete_event_stream::DeleteEventStreamError::ForbiddenException(inner) => Error::ForbiddenException(inner),
861 crate::operation::delete_event_stream::DeleteEventStreamError::InternalServerErrorException(inner) => {
862 Error::InternalServerErrorException(inner)
863 }
864 crate::operation::delete_event_stream::DeleteEventStreamError::MethodNotAllowedException(inner) => {
865 Error::MethodNotAllowedException(inner)
866 }
867 crate::operation::delete_event_stream::DeleteEventStreamError::NotFoundException(inner) => Error::NotFoundException(inner),
868 crate::operation::delete_event_stream::DeleteEventStreamError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
869 crate::operation::delete_event_stream::DeleteEventStreamError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
870 crate::operation::delete_event_stream::DeleteEventStreamError::Unhandled(inner) => Error::Unhandled(inner),
871 }
872 }
873}
874impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_gcm_channel::DeleteGcmChannelError, R>> for Error
875where
876 R: Send + Sync + std::fmt::Debug + 'static,
877{
878 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_gcm_channel::DeleteGcmChannelError, R>) -> Self {
879 match err {
880 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
881 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
882 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
883 source: err.into(),
884 }),
885 }
886 }
887}
888impl From<crate::operation::delete_gcm_channel::DeleteGcmChannelError> for Error {
889 fn from(err: crate::operation::delete_gcm_channel::DeleteGcmChannelError) -> Self {
890 match err {
891 crate::operation::delete_gcm_channel::DeleteGcmChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
892 crate::operation::delete_gcm_channel::DeleteGcmChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
893 crate::operation::delete_gcm_channel::DeleteGcmChannelError::InternalServerErrorException(inner) => {
894 Error::InternalServerErrorException(inner)
895 }
896 crate::operation::delete_gcm_channel::DeleteGcmChannelError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
897 crate::operation::delete_gcm_channel::DeleteGcmChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
898 crate::operation::delete_gcm_channel::DeleteGcmChannelError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
899 crate::operation::delete_gcm_channel::DeleteGcmChannelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
900 crate::operation::delete_gcm_channel::DeleteGcmChannelError::Unhandled(inner) => Error::Unhandled(inner),
901 }
902 }
903}
904impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_in_app_template::DeleteInAppTemplateError, R>> for Error
905where
906 R: Send + Sync + std::fmt::Debug + 'static,
907{
908 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_in_app_template::DeleteInAppTemplateError, R>) -> Self {
909 match err {
910 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
911 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
912 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
913 source: err.into(),
914 }),
915 }
916 }
917}
918impl From<crate::operation::delete_in_app_template::DeleteInAppTemplateError> for Error {
919 fn from(err: crate::operation::delete_in_app_template::DeleteInAppTemplateError) -> Self {
920 match err {
921 crate::operation::delete_in_app_template::DeleteInAppTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
922 crate::operation::delete_in_app_template::DeleteInAppTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
923 crate::operation::delete_in_app_template::DeleteInAppTemplateError::InternalServerErrorException(inner) => {
924 Error::InternalServerErrorException(inner)
925 }
926 crate::operation::delete_in_app_template::DeleteInAppTemplateError::MethodNotAllowedException(inner) => {
927 Error::MethodNotAllowedException(inner)
928 }
929 crate::operation::delete_in_app_template::DeleteInAppTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
930 crate::operation::delete_in_app_template::DeleteInAppTemplateError::PayloadTooLargeException(inner) => {
931 Error::PayloadTooLargeException(inner)
932 }
933 crate::operation::delete_in_app_template::DeleteInAppTemplateError::TooManyRequestsException(inner) => {
934 Error::TooManyRequestsException(inner)
935 }
936 crate::operation::delete_in_app_template::DeleteInAppTemplateError::Unhandled(inner) => Error::Unhandled(inner),
937 }
938 }
939}
940impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_journey::DeleteJourneyError, R>> for Error
941where
942 R: Send + Sync + std::fmt::Debug + 'static,
943{
944 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_journey::DeleteJourneyError, R>) -> Self {
945 match err {
946 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
947 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
948 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
949 source: err.into(),
950 }),
951 }
952 }
953}
954impl From<crate::operation::delete_journey::DeleteJourneyError> for Error {
955 fn from(err: crate::operation::delete_journey::DeleteJourneyError) -> Self {
956 match err {
957 crate::operation::delete_journey::DeleteJourneyError::BadRequestException(inner) => Error::BadRequestException(inner),
958 crate::operation::delete_journey::DeleteJourneyError::ForbiddenException(inner) => Error::ForbiddenException(inner),
959 crate::operation::delete_journey::DeleteJourneyError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
960 crate::operation::delete_journey::DeleteJourneyError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
961 crate::operation::delete_journey::DeleteJourneyError::NotFoundException(inner) => Error::NotFoundException(inner),
962 crate::operation::delete_journey::DeleteJourneyError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
963 crate::operation::delete_journey::DeleteJourneyError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
964 crate::operation::delete_journey::DeleteJourneyError::Unhandled(inner) => Error::Unhandled(inner),
965 }
966 }
967}
968impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_push_template::DeletePushTemplateError, 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::delete_push_template::DeletePushTemplateError, 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::delete_push_template::DeletePushTemplateError> for Error {
983 fn from(err: crate::operation::delete_push_template::DeletePushTemplateError) -> Self {
984 match err {
985 crate::operation::delete_push_template::DeletePushTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
986 crate::operation::delete_push_template::DeletePushTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
987 crate::operation::delete_push_template::DeletePushTemplateError::InternalServerErrorException(inner) => {
988 Error::InternalServerErrorException(inner)
989 }
990 crate::operation::delete_push_template::DeletePushTemplateError::MethodNotAllowedException(inner) => {
991 Error::MethodNotAllowedException(inner)
992 }
993 crate::operation::delete_push_template::DeletePushTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
994 crate::operation::delete_push_template::DeletePushTemplateError::PayloadTooLargeException(inner) => {
995 Error::PayloadTooLargeException(inner)
996 }
997 crate::operation::delete_push_template::DeletePushTemplateError::TooManyRequestsException(inner) => {
998 Error::TooManyRequestsException(inner)
999 }
1000 crate::operation::delete_push_template::DeletePushTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1001 }
1002 }
1003}
1004impl<R>
1005 From<
1006 ::aws_smithy_runtime_api::client::result::SdkError<
1007 crate::operation::delete_recommender_configuration::DeleteRecommenderConfigurationError,
1008 R,
1009 >,
1010 > for Error
1011where
1012 R: Send + Sync + std::fmt::Debug + 'static,
1013{
1014 fn from(
1015 err: ::aws_smithy_runtime_api::client::result::SdkError<
1016 crate::operation::delete_recommender_configuration::DeleteRecommenderConfigurationError,
1017 R,
1018 >,
1019 ) -> Self {
1020 match err {
1021 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1022 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1023 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1024 source: err.into(),
1025 }),
1026 }
1027 }
1028}
1029impl From<crate::operation::delete_recommender_configuration::DeleteRecommenderConfigurationError> for Error {
1030 fn from(err: crate::operation::delete_recommender_configuration::DeleteRecommenderConfigurationError) -> Self {
1031 match err {
1032 crate::operation::delete_recommender_configuration::DeleteRecommenderConfigurationError::BadRequestException(inner) => {
1033 Error::BadRequestException(inner)
1034 }
1035 crate::operation::delete_recommender_configuration::DeleteRecommenderConfigurationError::ForbiddenException(inner) => {
1036 Error::ForbiddenException(inner)
1037 }
1038 crate::operation::delete_recommender_configuration::DeleteRecommenderConfigurationError::InternalServerErrorException(inner) => {
1039 Error::InternalServerErrorException(inner)
1040 }
1041 crate::operation::delete_recommender_configuration::DeleteRecommenderConfigurationError::MethodNotAllowedException(inner) => {
1042 Error::MethodNotAllowedException(inner)
1043 }
1044 crate::operation::delete_recommender_configuration::DeleteRecommenderConfigurationError::NotFoundException(inner) => {
1045 Error::NotFoundException(inner)
1046 }
1047 crate::operation::delete_recommender_configuration::DeleteRecommenderConfigurationError::PayloadTooLargeException(inner) => {
1048 Error::PayloadTooLargeException(inner)
1049 }
1050 crate::operation::delete_recommender_configuration::DeleteRecommenderConfigurationError::TooManyRequestsException(inner) => {
1051 Error::TooManyRequestsException(inner)
1052 }
1053 crate::operation::delete_recommender_configuration::DeleteRecommenderConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1054 }
1055 }
1056}
1057impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_segment::DeleteSegmentError, R>> for Error
1058where
1059 R: Send + Sync + std::fmt::Debug + 'static,
1060{
1061 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_segment::DeleteSegmentError, R>) -> Self {
1062 match err {
1063 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1064 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1065 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1066 source: err.into(),
1067 }),
1068 }
1069 }
1070}
1071impl From<crate::operation::delete_segment::DeleteSegmentError> for Error {
1072 fn from(err: crate::operation::delete_segment::DeleteSegmentError) -> Self {
1073 match err {
1074 crate::operation::delete_segment::DeleteSegmentError::BadRequestException(inner) => Error::BadRequestException(inner),
1075 crate::operation::delete_segment::DeleteSegmentError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1076 crate::operation::delete_segment::DeleteSegmentError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1077 crate::operation::delete_segment::DeleteSegmentError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
1078 crate::operation::delete_segment::DeleteSegmentError::NotFoundException(inner) => Error::NotFoundException(inner),
1079 crate::operation::delete_segment::DeleteSegmentError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1080 crate::operation::delete_segment::DeleteSegmentError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1081 crate::operation::delete_segment::DeleteSegmentError::Unhandled(inner) => Error::Unhandled(inner),
1082 }
1083 }
1084}
1085impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_sms_channel::DeleteSmsChannelError, R>> for Error
1086where
1087 R: Send + Sync + std::fmt::Debug + 'static,
1088{
1089 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_sms_channel::DeleteSmsChannelError, R>) -> Self {
1090 match err {
1091 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1092 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1093 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1094 source: err.into(),
1095 }),
1096 }
1097 }
1098}
1099impl From<crate::operation::delete_sms_channel::DeleteSmsChannelError> for Error {
1100 fn from(err: crate::operation::delete_sms_channel::DeleteSmsChannelError) -> Self {
1101 match err {
1102 crate::operation::delete_sms_channel::DeleteSmsChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
1103 crate::operation::delete_sms_channel::DeleteSmsChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1104 crate::operation::delete_sms_channel::DeleteSmsChannelError::InternalServerErrorException(inner) => {
1105 Error::InternalServerErrorException(inner)
1106 }
1107 crate::operation::delete_sms_channel::DeleteSmsChannelError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
1108 crate::operation::delete_sms_channel::DeleteSmsChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
1109 crate::operation::delete_sms_channel::DeleteSmsChannelError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1110 crate::operation::delete_sms_channel::DeleteSmsChannelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1111 crate::operation::delete_sms_channel::DeleteSmsChannelError::Unhandled(inner) => Error::Unhandled(inner),
1112 }
1113 }
1114}
1115impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_sms_template::DeleteSmsTemplateError, R>> for Error
1116where
1117 R: Send + Sync + std::fmt::Debug + 'static,
1118{
1119 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_sms_template::DeleteSmsTemplateError, R>) -> Self {
1120 match err {
1121 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1122 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1123 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1124 source: err.into(),
1125 }),
1126 }
1127 }
1128}
1129impl From<crate::operation::delete_sms_template::DeleteSmsTemplateError> for Error {
1130 fn from(err: crate::operation::delete_sms_template::DeleteSmsTemplateError) -> Self {
1131 match err {
1132 crate::operation::delete_sms_template::DeleteSmsTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
1133 crate::operation::delete_sms_template::DeleteSmsTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1134 crate::operation::delete_sms_template::DeleteSmsTemplateError::InternalServerErrorException(inner) => {
1135 Error::InternalServerErrorException(inner)
1136 }
1137 crate::operation::delete_sms_template::DeleteSmsTemplateError::MethodNotAllowedException(inner) => {
1138 Error::MethodNotAllowedException(inner)
1139 }
1140 crate::operation::delete_sms_template::DeleteSmsTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
1141 crate::operation::delete_sms_template::DeleteSmsTemplateError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1142 crate::operation::delete_sms_template::DeleteSmsTemplateError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1143 crate::operation::delete_sms_template::DeleteSmsTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1144 }
1145 }
1146}
1147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_endpoints::DeleteUserEndpointsError, R>> for Error
1148where
1149 R: Send + Sync + std::fmt::Debug + 'static,
1150{
1151 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_endpoints::DeleteUserEndpointsError, R>) -> Self {
1152 match err {
1153 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1154 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1155 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1156 source: err.into(),
1157 }),
1158 }
1159 }
1160}
1161impl From<crate::operation::delete_user_endpoints::DeleteUserEndpointsError> for Error {
1162 fn from(err: crate::operation::delete_user_endpoints::DeleteUserEndpointsError) -> Self {
1163 match err {
1164 crate::operation::delete_user_endpoints::DeleteUserEndpointsError::BadRequestException(inner) => Error::BadRequestException(inner),
1165 crate::operation::delete_user_endpoints::DeleteUserEndpointsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1166 crate::operation::delete_user_endpoints::DeleteUserEndpointsError::InternalServerErrorException(inner) => {
1167 Error::InternalServerErrorException(inner)
1168 }
1169 crate::operation::delete_user_endpoints::DeleteUserEndpointsError::MethodNotAllowedException(inner) => {
1170 Error::MethodNotAllowedException(inner)
1171 }
1172 crate::operation::delete_user_endpoints::DeleteUserEndpointsError::NotFoundException(inner) => Error::NotFoundException(inner),
1173 crate::operation::delete_user_endpoints::DeleteUserEndpointsError::PayloadTooLargeException(inner) => {
1174 Error::PayloadTooLargeException(inner)
1175 }
1176 crate::operation::delete_user_endpoints::DeleteUserEndpointsError::TooManyRequestsException(inner) => {
1177 Error::TooManyRequestsException(inner)
1178 }
1179 crate::operation::delete_user_endpoints::DeleteUserEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
1180 }
1181 }
1182}
1183impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_voice_channel::DeleteVoiceChannelError, R>> for Error
1184where
1185 R: Send + Sync + std::fmt::Debug + 'static,
1186{
1187 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_voice_channel::DeleteVoiceChannelError, R>) -> Self {
1188 match err {
1189 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1190 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1191 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1192 source: err.into(),
1193 }),
1194 }
1195 }
1196}
1197impl From<crate::operation::delete_voice_channel::DeleteVoiceChannelError> for Error {
1198 fn from(err: crate::operation::delete_voice_channel::DeleteVoiceChannelError) -> Self {
1199 match err {
1200 crate::operation::delete_voice_channel::DeleteVoiceChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
1201 crate::operation::delete_voice_channel::DeleteVoiceChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1202 crate::operation::delete_voice_channel::DeleteVoiceChannelError::InternalServerErrorException(inner) => {
1203 Error::InternalServerErrorException(inner)
1204 }
1205 crate::operation::delete_voice_channel::DeleteVoiceChannelError::MethodNotAllowedException(inner) => {
1206 Error::MethodNotAllowedException(inner)
1207 }
1208 crate::operation::delete_voice_channel::DeleteVoiceChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
1209 crate::operation::delete_voice_channel::DeleteVoiceChannelError::PayloadTooLargeException(inner) => {
1210 Error::PayloadTooLargeException(inner)
1211 }
1212 crate::operation::delete_voice_channel::DeleteVoiceChannelError::TooManyRequestsException(inner) => {
1213 Error::TooManyRequestsException(inner)
1214 }
1215 crate::operation::delete_voice_channel::DeleteVoiceChannelError::Unhandled(inner) => Error::Unhandled(inner),
1216 }
1217 }
1218}
1219impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_voice_template::DeleteVoiceTemplateError, R>> for Error
1220where
1221 R: Send + Sync + std::fmt::Debug + 'static,
1222{
1223 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_voice_template::DeleteVoiceTemplateError, R>) -> Self {
1224 match err {
1225 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1226 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1227 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1228 source: err.into(),
1229 }),
1230 }
1231 }
1232}
1233impl From<crate::operation::delete_voice_template::DeleteVoiceTemplateError> for Error {
1234 fn from(err: crate::operation::delete_voice_template::DeleteVoiceTemplateError) -> Self {
1235 match err {
1236 crate::operation::delete_voice_template::DeleteVoiceTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
1237 crate::operation::delete_voice_template::DeleteVoiceTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1238 crate::operation::delete_voice_template::DeleteVoiceTemplateError::InternalServerErrorException(inner) => {
1239 Error::InternalServerErrorException(inner)
1240 }
1241 crate::operation::delete_voice_template::DeleteVoiceTemplateError::MethodNotAllowedException(inner) => {
1242 Error::MethodNotAllowedException(inner)
1243 }
1244 crate::operation::delete_voice_template::DeleteVoiceTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
1245 crate::operation::delete_voice_template::DeleteVoiceTemplateError::PayloadTooLargeException(inner) => {
1246 Error::PayloadTooLargeException(inner)
1247 }
1248 crate::operation::delete_voice_template::DeleteVoiceTemplateError::TooManyRequestsException(inner) => {
1249 Error::TooManyRequestsException(inner)
1250 }
1251 crate::operation::delete_voice_template::DeleteVoiceTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1252 }
1253 }
1254}
1255impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_adm_channel::GetAdmChannelError, R>> for Error
1256where
1257 R: Send + Sync + std::fmt::Debug + 'static,
1258{
1259 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_adm_channel::GetAdmChannelError, R>) -> Self {
1260 match err {
1261 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1262 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1263 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1264 source: err.into(),
1265 }),
1266 }
1267 }
1268}
1269impl From<crate::operation::get_adm_channel::GetAdmChannelError> for Error {
1270 fn from(err: crate::operation::get_adm_channel::GetAdmChannelError) -> Self {
1271 match err {
1272 crate::operation::get_adm_channel::GetAdmChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
1273 crate::operation::get_adm_channel::GetAdmChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1274 crate::operation::get_adm_channel::GetAdmChannelError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1275 crate::operation::get_adm_channel::GetAdmChannelError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
1276 crate::operation::get_adm_channel::GetAdmChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
1277 crate::operation::get_adm_channel::GetAdmChannelError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1278 crate::operation::get_adm_channel::GetAdmChannelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1279 crate::operation::get_adm_channel::GetAdmChannelError::Unhandled(inner) => Error::Unhandled(inner),
1280 }
1281 }
1282}
1283impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_apns_channel::GetApnsChannelError, R>> for Error
1284where
1285 R: Send + Sync + std::fmt::Debug + 'static,
1286{
1287 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_apns_channel::GetApnsChannelError, R>) -> Self {
1288 match err {
1289 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1290 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1291 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1292 source: err.into(),
1293 }),
1294 }
1295 }
1296}
1297impl From<crate::operation::get_apns_channel::GetApnsChannelError> for Error {
1298 fn from(err: crate::operation::get_apns_channel::GetApnsChannelError) -> Self {
1299 match err {
1300 crate::operation::get_apns_channel::GetApnsChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
1301 crate::operation::get_apns_channel::GetApnsChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1302 crate::operation::get_apns_channel::GetApnsChannelError::InternalServerErrorException(inner) => {
1303 Error::InternalServerErrorException(inner)
1304 }
1305 crate::operation::get_apns_channel::GetApnsChannelError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
1306 crate::operation::get_apns_channel::GetApnsChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
1307 crate::operation::get_apns_channel::GetApnsChannelError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1308 crate::operation::get_apns_channel::GetApnsChannelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1309 crate::operation::get_apns_channel::GetApnsChannelError::Unhandled(inner) => Error::Unhandled(inner),
1310 }
1311 }
1312}
1313impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_apns_sandbox_channel::GetApnsSandboxChannelError, R>> for Error
1314where
1315 R: Send + Sync + std::fmt::Debug + 'static,
1316{
1317 fn from(
1318 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_apns_sandbox_channel::GetApnsSandboxChannelError, R>,
1319 ) -> Self {
1320 match err {
1321 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1322 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1323 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1324 source: err.into(),
1325 }),
1326 }
1327 }
1328}
1329impl From<crate::operation::get_apns_sandbox_channel::GetApnsSandboxChannelError> for Error {
1330 fn from(err: crate::operation::get_apns_sandbox_channel::GetApnsSandboxChannelError) -> Self {
1331 match err {
1332 crate::operation::get_apns_sandbox_channel::GetApnsSandboxChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
1333 crate::operation::get_apns_sandbox_channel::GetApnsSandboxChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1334 crate::operation::get_apns_sandbox_channel::GetApnsSandboxChannelError::InternalServerErrorException(inner) => {
1335 Error::InternalServerErrorException(inner)
1336 }
1337 crate::operation::get_apns_sandbox_channel::GetApnsSandboxChannelError::MethodNotAllowedException(inner) => {
1338 Error::MethodNotAllowedException(inner)
1339 }
1340 crate::operation::get_apns_sandbox_channel::GetApnsSandboxChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
1341 crate::operation::get_apns_sandbox_channel::GetApnsSandboxChannelError::PayloadTooLargeException(inner) => {
1342 Error::PayloadTooLargeException(inner)
1343 }
1344 crate::operation::get_apns_sandbox_channel::GetApnsSandboxChannelError::TooManyRequestsException(inner) => {
1345 Error::TooManyRequestsException(inner)
1346 }
1347 crate::operation::get_apns_sandbox_channel::GetApnsSandboxChannelError::Unhandled(inner) => Error::Unhandled(inner),
1348 }
1349 }
1350}
1351impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_apns_voip_channel::GetApnsVoipChannelError, R>> for Error
1352where
1353 R: Send + Sync + std::fmt::Debug + 'static,
1354{
1355 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_apns_voip_channel::GetApnsVoipChannelError, R>) -> Self {
1356 match err {
1357 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1358 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1359 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1360 source: err.into(),
1361 }),
1362 }
1363 }
1364}
1365impl From<crate::operation::get_apns_voip_channel::GetApnsVoipChannelError> for Error {
1366 fn from(err: crate::operation::get_apns_voip_channel::GetApnsVoipChannelError) -> Self {
1367 match err {
1368 crate::operation::get_apns_voip_channel::GetApnsVoipChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
1369 crate::operation::get_apns_voip_channel::GetApnsVoipChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1370 crate::operation::get_apns_voip_channel::GetApnsVoipChannelError::InternalServerErrorException(inner) => {
1371 Error::InternalServerErrorException(inner)
1372 }
1373 crate::operation::get_apns_voip_channel::GetApnsVoipChannelError::MethodNotAllowedException(inner) => {
1374 Error::MethodNotAllowedException(inner)
1375 }
1376 crate::operation::get_apns_voip_channel::GetApnsVoipChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
1377 crate::operation::get_apns_voip_channel::GetApnsVoipChannelError::PayloadTooLargeException(inner) => {
1378 Error::PayloadTooLargeException(inner)
1379 }
1380 crate::operation::get_apns_voip_channel::GetApnsVoipChannelError::TooManyRequestsException(inner) => {
1381 Error::TooManyRequestsException(inner)
1382 }
1383 crate::operation::get_apns_voip_channel::GetApnsVoipChannelError::Unhandled(inner) => Error::Unhandled(inner),
1384 }
1385 }
1386}
1387impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_apns_voip_sandbox_channel::GetApnsVoipSandboxChannelError, R>>
1388 for Error
1389where
1390 R: Send + Sync + std::fmt::Debug + 'static,
1391{
1392 fn from(
1393 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_apns_voip_sandbox_channel::GetApnsVoipSandboxChannelError, R>,
1394 ) -> Self {
1395 match err {
1396 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1397 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1398 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1399 source: err.into(),
1400 }),
1401 }
1402 }
1403}
1404impl From<crate::operation::get_apns_voip_sandbox_channel::GetApnsVoipSandboxChannelError> for Error {
1405 fn from(err: crate::operation::get_apns_voip_sandbox_channel::GetApnsVoipSandboxChannelError) -> Self {
1406 match err {
1407 crate::operation::get_apns_voip_sandbox_channel::GetApnsVoipSandboxChannelError::BadRequestException(inner) => {
1408 Error::BadRequestException(inner)
1409 }
1410 crate::operation::get_apns_voip_sandbox_channel::GetApnsVoipSandboxChannelError::ForbiddenException(inner) => {
1411 Error::ForbiddenException(inner)
1412 }
1413 crate::operation::get_apns_voip_sandbox_channel::GetApnsVoipSandboxChannelError::InternalServerErrorException(inner) => {
1414 Error::InternalServerErrorException(inner)
1415 }
1416 crate::operation::get_apns_voip_sandbox_channel::GetApnsVoipSandboxChannelError::MethodNotAllowedException(inner) => {
1417 Error::MethodNotAllowedException(inner)
1418 }
1419 crate::operation::get_apns_voip_sandbox_channel::GetApnsVoipSandboxChannelError::NotFoundException(inner) => {
1420 Error::NotFoundException(inner)
1421 }
1422 crate::operation::get_apns_voip_sandbox_channel::GetApnsVoipSandboxChannelError::PayloadTooLargeException(inner) => {
1423 Error::PayloadTooLargeException(inner)
1424 }
1425 crate::operation::get_apns_voip_sandbox_channel::GetApnsVoipSandboxChannelError::TooManyRequestsException(inner) => {
1426 Error::TooManyRequestsException(inner)
1427 }
1428 crate::operation::get_apns_voip_sandbox_channel::GetApnsVoipSandboxChannelError::Unhandled(inner) => Error::Unhandled(inner),
1429 }
1430 }
1431}
1432impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_app::GetAppError, R>> for Error
1433where
1434 R: Send + Sync + std::fmt::Debug + 'static,
1435{
1436 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_app::GetAppError, R>) -> Self {
1437 match err {
1438 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1439 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1440 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1441 source: err.into(),
1442 }),
1443 }
1444 }
1445}
1446impl From<crate::operation::get_app::GetAppError> for Error {
1447 fn from(err: crate::operation::get_app::GetAppError) -> Self {
1448 match err {
1449 crate::operation::get_app::GetAppError::BadRequestException(inner) => Error::BadRequestException(inner),
1450 crate::operation::get_app::GetAppError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1451 crate::operation::get_app::GetAppError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1452 crate::operation::get_app::GetAppError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
1453 crate::operation::get_app::GetAppError::NotFoundException(inner) => Error::NotFoundException(inner),
1454 crate::operation::get_app::GetAppError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1455 crate::operation::get_app::GetAppError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1456 crate::operation::get_app::GetAppError::Unhandled(inner) => Error::Unhandled(inner),
1457 }
1458 }
1459}
1460impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_application_date_range_kpi::GetApplicationDateRangeKpiError, R>>
1461 for Error
1462where
1463 R: Send + Sync + std::fmt::Debug + 'static,
1464{
1465 fn from(
1466 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_application_date_range_kpi::GetApplicationDateRangeKpiError, R>,
1467 ) -> Self {
1468 match err {
1469 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1470 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1471 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1472 source: err.into(),
1473 }),
1474 }
1475 }
1476}
1477impl From<crate::operation::get_application_date_range_kpi::GetApplicationDateRangeKpiError> for Error {
1478 fn from(err: crate::operation::get_application_date_range_kpi::GetApplicationDateRangeKpiError) -> Self {
1479 match err {
1480 crate::operation::get_application_date_range_kpi::GetApplicationDateRangeKpiError::BadRequestException(inner) => {
1481 Error::BadRequestException(inner)
1482 }
1483 crate::operation::get_application_date_range_kpi::GetApplicationDateRangeKpiError::ForbiddenException(inner) => {
1484 Error::ForbiddenException(inner)
1485 }
1486 crate::operation::get_application_date_range_kpi::GetApplicationDateRangeKpiError::InternalServerErrorException(inner) => {
1487 Error::InternalServerErrorException(inner)
1488 }
1489 crate::operation::get_application_date_range_kpi::GetApplicationDateRangeKpiError::MethodNotAllowedException(inner) => {
1490 Error::MethodNotAllowedException(inner)
1491 }
1492 crate::operation::get_application_date_range_kpi::GetApplicationDateRangeKpiError::NotFoundException(inner) => {
1493 Error::NotFoundException(inner)
1494 }
1495 crate::operation::get_application_date_range_kpi::GetApplicationDateRangeKpiError::PayloadTooLargeException(inner) => {
1496 Error::PayloadTooLargeException(inner)
1497 }
1498 crate::operation::get_application_date_range_kpi::GetApplicationDateRangeKpiError::TooManyRequestsException(inner) => {
1499 Error::TooManyRequestsException(inner)
1500 }
1501 crate::operation::get_application_date_range_kpi::GetApplicationDateRangeKpiError::Unhandled(inner) => Error::Unhandled(inner),
1502 }
1503 }
1504}
1505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_application_settings::GetApplicationSettingsError, R>> for Error
1506where
1507 R: Send + Sync + std::fmt::Debug + 'static,
1508{
1509 fn from(
1510 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_application_settings::GetApplicationSettingsError, R>,
1511 ) -> Self {
1512 match err {
1513 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1514 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1515 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1516 source: err.into(),
1517 }),
1518 }
1519 }
1520}
1521impl From<crate::operation::get_application_settings::GetApplicationSettingsError> for Error {
1522 fn from(err: crate::operation::get_application_settings::GetApplicationSettingsError) -> Self {
1523 match err {
1524 crate::operation::get_application_settings::GetApplicationSettingsError::BadRequestException(inner) => Error::BadRequestException(inner),
1525 crate::operation::get_application_settings::GetApplicationSettingsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1526 crate::operation::get_application_settings::GetApplicationSettingsError::InternalServerErrorException(inner) => {
1527 Error::InternalServerErrorException(inner)
1528 }
1529 crate::operation::get_application_settings::GetApplicationSettingsError::MethodNotAllowedException(inner) => {
1530 Error::MethodNotAllowedException(inner)
1531 }
1532 crate::operation::get_application_settings::GetApplicationSettingsError::NotFoundException(inner) => Error::NotFoundException(inner),
1533 crate::operation::get_application_settings::GetApplicationSettingsError::PayloadTooLargeException(inner) => {
1534 Error::PayloadTooLargeException(inner)
1535 }
1536 crate::operation::get_application_settings::GetApplicationSettingsError::TooManyRequestsException(inner) => {
1537 Error::TooManyRequestsException(inner)
1538 }
1539 crate::operation::get_application_settings::GetApplicationSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1540 }
1541 }
1542}
1543impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_apps::GetAppsError, R>> for Error
1544where
1545 R: Send + Sync + std::fmt::Debug + 'static,
1546{
1547 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_apps::GetAppsError, R>) -> Self {
1548 match err {
1549 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1550 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1551 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1552 source: err.into(),
1553 }),
1554 }
1555 }
1556}
1557impl From<crate::operation::get_apps::GetAppsError> for Error {
1558 fn from(err: crate::operation::get_apps::GetAppsError) -> Self {
1559 match err {
1560 crate::operation::get_apps::GetAppsError::BadRequestException(inner) => Error::BadRequestException(inner),
1561 crate::operation::get_apps::GetAppsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1562 crate::operation::get_apps::GetAppsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1563 crate::operation::get_apps::GetAppsError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
1564 crate::operation::get_apps::GetAppsError::NotFoundException(inner) => Error::NotFoundException(inner),
1565 crate::operation::get_apps::GetAppsError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1566 crate::operation::get_apps::GetAppsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1567 crate::operation::get_apps::GetAppsError::Unhandled(inner) => Error::Unhandled(inner),
1568 }
1569 }
1570}
1571impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_baidu_channel::GetBaiduChannelError, R>> for Error
1572where
1573 R: Send + Sync + std::fmt::Debug + 'static,
1574{
1575 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_baidu_channel::GetBaiduChannelError, R>) -> Self {
1576 match err {
1577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1580 source: err.into(),
1581 }),
1582 }
1583 }
1584}
1585impl From<crate::operation::get_baidu_channel::GetBaiduChannelError> for Error {
1586 fn from(err: crate::operation::get_baidu_channel::GetBaiduChannelError) -> Self {
1587 match err {
1588 crate::operation::get_baidu_channel::GetBaiduChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
1589 crate::operation::get_baidu_channel::GetBaiduChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1590 crate::operation::get_baidu_channel::GetBaiduChannelError::InternalServerErrorException(inner) => {
1591 Error::InternalServerErrorException(inner)
1592 }
1593 crate::operation::get_baidu_channel::GetBaiduChannelError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
1594 crate::operation::get_baidu_channel::GetBaiduChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
1595 crate::operation::get_baidu_channel::GetBaiduChannelError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1596 crate::operation::get_baidu_channel::GetBaiduChannelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1597 crate::operation::get_baidu_channel::GetBaiduChannelError::Unhandled(inner) => Error::Unhandled(inner),
1598 }
1599 }
1600}
1601impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_campaign::GetCampaignError, R>> for Error
1602where
1603 R: Send + Sync + std::fmt::Debug + 'static,
1604{
1605 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_campaign::GetCampaignError, R>) -> Self {
1606 match err {
1607 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1608 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1609 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1610 source: err.into(),
1611 }),
1612 }
1613 }
1614}
1615impl From<crate::operation::get_campaign::GetCampaignError> for Error {
1616 fn from(err: crate::operation::get_campaign::GetCampaignError) -> Self {
1617 match err {
1618 crate::operation::get_campaign::GetCampaignError::BadRequestException(inner) => Error::BadRequestException(inner),
1619 crate::operation::get_campaign::GetCampaignError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1620 crate::operation::get_campaign::GetCampaignError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1621 crate::operation::get_campaign::GetCampaignError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
1622 crate::operation::get_campaign::GetCampaignError::NotFoundException(inner) => Error::NotFoundException(inner),
1623 crate::operation::get_campaign::GetCampaignError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1624 crate::operation::get_campaign::GetCampaignError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1625 crate::operation::get_campaign::GetCampaignError::Unhandled(inner) => Error::Unhandled(inner),
1626 }
1627 }
1628}
1629impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_campaign_activities::GetCampaignActivitiesError, R>> for Error
1630where
1631 R: Send + Sync + std::fmt::Debug + 'static,
1632{
1633 fn from(
1634 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_campaign_activities::GetCampaignActivitiesError, R>,
1635 ) -> Self {
1636 match err {
1637 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1638 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1639 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1640 source: err.into(),
1641 }),
1642 }
1643 }
1644}
1645impl From<crate::operation::get_campaign_activities::GetCampaignActivitiesError> for Error {
1646 fn from(err: crate::operation::get_campaign_activities::GetCampaignActivitiesError) -> Self {
1647 match err {
1648 crate::operation::get_campaign_activities::GetCampaignActivitiesError::BadRequestException(inner) => Error::BadRequestException(inner),
1649 crate::operation::get_campaign_activities::GetCampaignActivitiesError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1650 crate::operation::get_campaign_activities::GetCampaignActivitiesError::InternalServerErrorException(inner) => {
1651 Error::InternalServerErrorException(inner)
1652 }
1653 crate::operation::get_campaign_activities::GetCampaignActivitiesError::MethodNotAllowedException(inner) => {
1654 Error::MethodNotAllowedException(inner)
1655 }
1656 crate::operation::get_campaign_activities::GetCampaignActivitiesError::NotFoundException(inner) => Error::NotFoundException(inner),
1657 crate::operation::get_campaign_activities::GetCampaignActivitiesError::PayloadTooLargeException(inner) => {
1658 Error::PayloadTooLargeException(inner)
1659 }
1660 crate::operation::get_campaign_activities::GetCampaignActivitiesError::TooManyRequestsException(inner) => {
1661 Error::TooManyRequestsException(inner)
1662 }
1663 crate::operation::get_campaign_activities::GetCampaignActivitiesError::Unhandled(inner) => Error::Unhandled(inner),
1664 }
1665 }
1666}
1667impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_campaign_date_range_kpi::GetCampaignDateRangeKpiError, R>>
1668 for Error
1669where
1670 R: Send + Sync + std::fmt::Debug + 'static,
1671{
1672 fn from(
1673 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_campaign_date_range_kpi::GetCampaignDateRangeKpiError, R>,
1674 ) -> Self {
1675 match err {
1676 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1677 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1678 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1679 source: err.into(),
1680 }),
1681 }
1682 }
1683}
1684impl From<crate::operation::get_campaign_date_range_kpi::GetCampaignDateRangeKpiError> for Error {
1685 fn from(err: crate::operation::get_campaign_date_range_kpi::GetCampaignDateRangeKpiError) -> Self {
1686 match err {
1687 crate::operation::get_campaign_date_range_kpi::GetCampaignDateRangeKpiError::BadRequestException(inner) => {
1688 Error::BadRequestException(inner)
1689 }
1690 crate::operation::get_campaign_date_range_kpi::GetCampaignDateRangeKpiError::ForbiddenException(inner) => {
1691 Error::ForbiddenException(inner)
1692 }
1693 crate::operation::get_campaign_date_range_kpi::GetCampaignDateRangeKpiError::InternalServerErrorException(inner) => {
1694 Error::InternalServerErrorException(inner)
1695 }
1696 crate::operation::get_campaign_date_range_kpi::GetCampaignDateRangeKpiError::MethodNotAllowedException(inner) => {
1697 Error::MethodNotAllowedException(inner)
1698 }
1699 crate::operation::get_campaign_date_range_kpi::GetCampaignDateRangeKpiError::NotFoundException(inner) => Error::NotFoundException(inner),
1700 crate::operation::get_campaign_date_range_kpi::GetCampaignDateRangeKpiError::PayloadTooLargeException(inner) => {
1701 Error::PayloadTooLargeException(inner)
1702 }
1703 crate::operation::get_campaign_date_range_kpi::GetCampaignDateRangeKpiError::TooManyRequestsException(inner) => {
1704 Error::TooManyRequestsException(inner)
1705 }
1706 crate::operation::get_campaign_date_range_kpi::GetCampaignDateRangeKpiError::Unhandled(inner) => Error::Unhandled(inner),
1707 }
1708 }
1709}
1710impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_campaigns::GetCampaignsError, R>> for Error
1711where
1712 R: Send + Sync + std::fmt::Debug + 'static,
1713{
1714 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_campaigns::GetCampaignsError, R>) -> Self {
1715 match err {
1716 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1717 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1718 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1719 source: err.into(),
1720 }),
1721 }
1722 }
1723}
1724impl From<crate::operation::get_campaigns::GetCampaignsError> for Error {
1725 fn from(err: crate::operation::get_campaigns::GetCampaignsError) -> Self {
1726 match err {
1727 crate::operation::get_campaigns::GetCampaignsError::BadRequestException(inner) => Error::BadRequestException(inner),
1728 crate::operation::get_campaigns::GetCampaignsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1729 crate::operation::get_campaigns::GetCampaignsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1730 crate::operation::get_campaigns::GetCampaignsError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
1731 crate::operation::get_campaigns::GetCampaignsError::NotFoundException(inner) => Error::NotFoundException(inner),
1732 crate::operation::get_campaigns::GetCampaignsError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1733 crate::operation::get_campaigns::GetCampaignsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1734 crate::operation::get_campaigns::GetCampaignsError::Unhandled(inner) => Error::Unhandled(inner),
1735 }
1736 }
1737}
1738impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_campaign_version::GetCampaignVersionError, R>> for Error
1739where
1740 R: Send + Sync + std::fmt::Debug + 'static,
1741{
1742 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_campaign_version::GetCampaignVersionError, R>) -> Self {
1743 match err {
1744 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1745 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1746 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1747 source: err.into(),
1748 }),
1749 }
1750 }
1751}
1752impl From<crate::operation::get_campaign_version::GetCampaignVersionError> for Error {
1753 fn from(err: crate::operation::get_campaign_version::GetCampaignVersionError) -> Self {
1754 match err {
1755 crate::operation::get_campaign_version::GetCampaignVersionError::BadRequestException(inner) => Error::BadRequestException(inner),
1756 crate::operation::get_campaign_version::GetCampaignVersionError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1757 crate::operation::get_campaign_version::GetCampaignVersionError::InternalServerErrorException(inner) => {
1758 Error::InternalServerErrorException(inner)
1759 }
1760 crate::operation::get_campaign_version::GetCampaignVersionError::MethodNotAllowedException(inner) => {
1761 Error::MethodNotAllowedException(inner)
1762 }
1763 crate::operation::get_campaign_version::GetCampaignVersionError::NotFoundException(inner) => Error::NotFoundException(inner),
1764 crate::operation::get_campaign_version::GetCampaignVersionError::PayloadTooLargeException(inner) => {
1765 Error::PayloadTooLargeException(inner)
1766 }
1767 crate::operation::get_campaign_version::GetCampaignVersionError::TooManyRequestsException(inner) => {
1768 Error::TooManyRequestsException(inner)
1769 }
1770 crate::operation::get_campaign_version::GetCampaignVersionError::Unhandled(inner) => Error::Unhandled(inner),
1771 }
1772 }
1773}
1774impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_campaign_versions::GetCampaignVersionsError, R>> for Error
1775where
1776 R: Send + Sync + std::fmt::Debug + 'static,
1777{
1778 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_campaign_versions::GetCampaignVersionsError, R>) -> Self {
1779 match err {
1780 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1781 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1782 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1783 source: err.into(),
1784 }),
1785 }
1786 }
1787}
1788impl From<crate::operation::get_campaign_versions::GetCampaignVersionsError> for Error {
1789 fn from(err: crate::operation::get_campaign_versions::GetCampaignVersionsError) -> Self {
1790 match err {
1791 crate::operation::get_campaign_versions::GetCampaignVersionsError::BadRequestException(inner) => Error::BadRequestException(inner),
1792 crate::operation::get_campaign_versions::GetCampaignVersionsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1793 crate::operation::get_campaign_versions::GetCampaignVersionsError::InternalServerErrorException(inner) => {
1794 Error::InternalServerErrorException(inner)
1795 }
1796 crate::operation::get_campaign_versions::GetCampaignVersionsError::MethodNotAllowedException(inner) => {
1797 Error::MethodNotAllowedException(inner)
1798 }
1799 crate::operation::get_campaign_versions::GetCampaignVersionsError::NotFoundException(inner) => Error::NotFoundException(inner),
1800 crate::operation::get_campaign_versions::GetCampaignVersionsError::PayloadTooLargeException(inner) => {
1801 Error::PayloadTooLargeException(inner)
1802 }
1803 crate::operation::get_campaign_versions::GetCampaignVersionsError::TooManyRequestsException(inner) => {
1804 Error::TooManyRequestsException(inner)
1805 }
1806 crate::operation::get_campaign_versions::GetCampaignVersionsError::Unhandled(inner) => Error::Unhandled(inner),
1807 }
1808 }
1809}
1810impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_channels::GetChannelsError, R>> for Error
1811where
1812 R: Send + Sync + std::fmt::Debug + 'static,
1813{
1814 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_channels::GetChannelsError, R>) -> Self {
1815 match err {
1816 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1817 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1818 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1819 source: err.into(),
1820 }),
1821 }
1822 }
1823}
1824impl From<crate::operation::get_channels::GetChannelsError> for Error {
1825 fn from(err: crate::operation::get_channels::GetChannelsError) -> Self {
1826 match err {
1827 crate::operation::get_channels::GetChannelsError::BadRequestException(inner) => Error::BadRequestException(inner),
1828 crate::operation::get_channels::GetChannelsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1829 crate::operation::get_channels::GetChannelsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1830 crate::operation::get_channels::GetChannelsError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
1831 crate::operation::get_channels::GetChannelsError::NotFoundException(inner) => Error::NotFoundException(inner),
1832 crate::operation::get_channels::GetChannelsError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1833 crate::operation::get_channels::GetChannelsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1834 crate::operation::get_channels::GetChannelsError::Unhandled(inner) => Error::Unhandled(inner),
1835 }
1836 }
1837}
1838impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_email_channel::GetEmailChannelError, R>> for Error
1839where
1840 R: Send + Sync + std::fmt::Debug + 'static,
1841{
1842 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_email_channel::GetEmailChannelError, R>) -> Self {
1843 match err {
1844 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1845 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1846 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1847 source: err.into(),
1848 }),
1849 }
1850 }
1851}
1852impl From<crate::operation::get_email_channel::GetEmailChannelError> for Error {
1853 fn from(err: crate::operation::get_email_channel::GetEmailChannelError) -> Self {
1854 match err {
1855 crate::operation::get_email_channel::GetEmailChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
1856 crate::operation::get_email_channel::GetEmailChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1857 crate::operation::get_email_channel::GetEmailChannelError::InternalServerErrorException(inner) => {
1858 Error::InternalServerErrorException(inner)
1859 }
1860 crate::operation::get_email_channel::GetEmailChannelError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
1861 crate::operation::get_email_channel::GetEmailChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
1862 crate::operation::get_email_channel::GetEmailChannelError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1863 crate::operation::get_email_channel::GetEmailChannelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1864 crate::operation::get_email_channel::GetEmailChannelError::Unhandled(inner) => Error::Unhandled(inner),
1865 }
1866 }
1867}
1868impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_email_template::GetEmailTemplateError, R>> for Error
1869where
1870 R: Send + Sync + std::fmt::Debug + 'static,
1871{
1872 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_email_template::GetEmailTemplateError, R>) -> Self {
1873 match err {
1874 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1875 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1876 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1877 source: err.into(),
1878 }),
1879 }
1880 }
1881}
1882impl From<crate::operation::get_email_template::GetEmailTemplateError> for Error {
1883 fn from(err: crate::operation::get_email_template::GetEmailTemplateError) -> Self {
1884 match err {
1885 crate::operation::get_email_template::GetEmailTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
1886 crate::operation::get_email_template::GetEmailTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1887 crate::operation::get_email_template::GetEmailTemplateError::InternalServerErrorException(inner) => {
1888 Error::InternalServerErrorException(inner)
1889 }
1890 crate::operation::get_email_template::GetEmailTemplateError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
1891 crate::operation::get_email_template::GetEmailTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
1892 crate::operation::get_email_template::GetEmailTemplateError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1893 crate::operation::get_email_template::GetEmailTemplateError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1894 crate::operation::get_email_template::GetEmailTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1895 }
1896 }
1897}
1898impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_endpoint::GetEndpointError, R>> for Error
1899where
1900 R: Send + Sync + std::fmt::Debug + 'static,
1901{
1902 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_endpoint::GetEndpointError, R>) -> Self {
1903 match err {
1904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1907 source: err.into(),
1908 }),
1909 }
1910 }
1911}
1912impl From<crate::operation::get_endpoint::GetEndpointError> for Error {
1913 fn from(err: crate::operation::get_endpoint::GetEndpointError) -> Self {
1914 match err {
1915 crate::operation::get_endpoint::GetEndpointError::BadRequestException(inner) => Error::BadRequestException(inner),
1916 crate::operation::get_endpoint::GetEndpointError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1917 crate::operation::get_endpoint::GetEndpointError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1918 crate::operation::get_endpoint::GetEndpointError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
1919 crate::operation::get_endpoint::GetEndpointError::NotFoundException(inner) => Error::NotFoundException(inner),
1920 crate::operation::get_endpoint::GetEndpointError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1921 crate::operation::get_endpoint::GetEndpointError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1922 crate::operation::get_endpoint::GetEndpointError::Unhandled(inner) => Error::Unhandled(inner),
1923 }
1924 }
1925}
1926impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_event_stream::GetEventStreamError, R>> for Error
1927where
1928 R: Send + Sync + std::fmt::Debug + 'static,
1929{
1930 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_event_stream::GetEventStreamError, R>) -> Self {
1931 match err {
1932 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1933 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1934 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1935 source: err.into(),
1936 }),
1937 }
1938 }
1939}
1940impl From<crate::operation::get_event_stream::GetEventStreamError> for Error {
1941 fn from(err: crate::operation::get_event_stream::GetEventStreamError) -> Self {
1942 match err {
1943 crate::operation::get_event_stream::GetEventStreamError::BadRequestException(inner) => Error::BadRequestException(inner),
1944 crate::operation::get_event_stream::GetEventStreamError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1945 crate::operation::get_event_stream::GetEventStreamError::InternalServerErrorException(inner) => {
1946 Error::InternalServerErrorException(inner)
1947 }
1948 crate::operation::get_event_stream::GetEventStreamError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
1949 crate::operation::get_event_stream::GetEventStreamError::NotFoundException(inner) => Error::NotFoundException(inner),
1950 crate::operation::get_event_stream::GetEventStreamError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1951 crate::operation::get_event_stream::GetEventStreamError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1952 crate::operation::get_event_stream::GetEventStreamError::Unhandled(inner) => Error::Unhandled(inner),
1953 }
1954 }
1955}
1956impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_export_job::GetExportJobError, R>> for Error
1957where
1958 R: Send + Sync + std::fmt::Debug + 'static,
1959{
1960 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_export_job::GetExportJobError, R>) -> Self {
1961 match err {
1962 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1963 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1964 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1965 source: err.into(),
1966 }),
1967 }
1968 }
1969}
1970impl From<crate::operation::get_export_job::GetExportJobError> for Error {
1971 fn from(err: crate::operation::get_export_job::GetExportJobError) -> Self {
1972 match err {
1973 crate::operation::get_export_job::GetExportJobError::BadRequestException(inner) => Error::BadRequestException(inner),
1974 crate::operation::get_export_job::GetExportJobError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1975 crate::operation::get_export_job::GetExportJobError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1976 crate::operation::get_export_job::GetExportJobError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
1977 crate::operation::get_export_job::GetExportJobError::NotFoundException(inner) => Error::NotFoundException(inner),
1978 crate::operation::get_export_job::GetExportJobError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
1979 crate::operation::get_export_job::GetExportJobError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1980 crate::operation::get_export_job::GetExportJobError::Unhandled(inner) => Error::Unhandled(inner),
1981 }
1982 }
1983}
1984impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_export_jobs::GetExportJobsError, R>> for Error
1985where
1986 R: Send + Sync + std::fmt::Debug + 'static,
1987{
1988 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_export_jobs::GetExportJobsError, R>) -> Self {
1989 match err {
1990 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1991 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1992 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1993 source: err.into(),
1994 }),
1995 }
1996 }
1997}
1998impl From<crate::operation::get_export_jobs::GetExportJobsError> for Error {
1999 fn from(err: crate::operation::get_export_jobs::GetExportJobsError) -> Self {
2000 match err {
2001 crate::operation::get_export_jobs::GetExportJobsError::BadRequestException(inner) => Error::BadRequestException(inner),
2002 crate::operation::get_export_jobs::GetExportJobsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2003 crate::operation::get_export_jobs::GetExportJobsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2004 crate::operation::get_export_jobs::GetExportJobsError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2005 crate::operation::get_export_jobs::GetExportJobsError::NotFoundException(inner) => Error::NotFoundException(inner),
2006 crate::operation::get_export_jobs::GetExportJobsError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2007 crate::operation::get_export_jobs::GetExportJobsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2008 crate::operation::get_export_jobs::GetExportJobsError::Unhandled(inner) => Error::Unhandled(inner),
2009 }
2010 }
2011}
2012impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_gcm_channel::GetGcmChannelError, R>> for Error
2013where
2014 R: Send + Sync + std::fmt::Debug + 'static,
2015{
2016 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_gcm_channel::GetGcmChannelError, R>) -> Self {
2017 match err {
2018 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2019 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2020 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2021 source: err.into(),
2022 }),
2023 }
2024 }
2025}
2026impl From<crate::operation::get_gcm_channel::GetGcmChannelError> for Error {
2027 fn from(err: crate::operation::get_gcm_channel::GetGcmChannelError) -> Self {
2028 match err {
2029 crate::operation::get_gcm_channel::GetGcmChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
2030 crate::operation::get_gcm_channel::GetGcmChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2031 crate::operation::get_gcm_channel::GetGcmChannelError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2032 crate::operation::get_gcm_channel::GetGcmChannelError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2033 crate::operation::get_gcm_channel::GetGcmChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
2034 crate::operation::get_gcm_channel::GetGcmChannelError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2035 crate::operation::get_gcm_channel::GetGcmChannelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2036 crate::operation::get_gcm_channel::GetGcmChannelError::Unhandled(inner) => Error::Unhandled(inner),
2037 }
2038 }
2039}
2040impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_import_job::GetImportJobError, R>> for Error
2041where
2042 R: Send + Sync + std::fmt::Debug + 'static,
2043{
2044 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_import_job::GetImportJobError, R>) -> Self {
2045 match err {
2046 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2047 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2048 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2049 source: err.into(),
2050 }),
2051 }
2052 }
2053}
2054impl From<crate::operation::get_import_job::GetImportJobError> for Error {
2055 fn from(err: crate::operation::get_import_job::GetImportJobError) -> Self {
2056 match err {
2057 crate::operation::get_import_job::GetImportJobError::BadRequestException(inner) => Error::BadRequestException(inner),
2058 crate::operation::get_import_job::GetImportJobError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2059 crate::operation::get_import_job::GetImportJobError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2060 crate::operation::get_import_job::GetImportJobError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2061 crate::operation::get_import_job::GetImportJobError::NotFoundException(inner) => Error::NotFoundException(inner),
2062 crate::operation::get_import_job::GetImportJobError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2063 crate::operation::get_import_job::GetImportJobError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2064 crate::operation::get_import_job::GetImportJobError::Unhandled(inner) => Error::Unhandled(inner),
2065 }
2066 }
2067}
2068impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_import_jobs::GetImportJobsError, R>> for Error
2069where
2070 R: Send + Sync + std::fmt::Debug + 'static,
2071{
2072 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_import_jobs::GetImportJobsError, R>) -> Self {
2073 match err {
2074 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2075 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2076 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2077 source: err.into(),
2078 }),
2079 }
2080 }
2081}
2082impl From<crate::operation::get_import_jobs::GetImportJobsError> for Error {
2083 fn from(err: crate::operation::get_import_jobs::GetImportJobsError) -> Self {
2084 match err {
2085 crate::operation::get_import_jobs::GetImportJobsError::BadRequestException(inner) => Error::BadRequestException(inner),
2086 crate::operation::get_import_jobs::GetImportJobsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2087 crate::operation::get_import_jobs::GetImportJobsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2088 crate::operation::get_import_jobs::GetImportJobsError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2089 crate::operation::get_import_jobs::GetImportJobsError::NotFoundException(inner) => Error::NotFoundException(inner),
2090 crate::operation::get_import_jobs::GetImportJobsError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2091 crate::operation::get_import_jobs::GetImportJobsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2092 crate::operation::get_import_jobs::GetImportJobsError::Unhandled(inner) => Error::Unhandled(inner),
2093 }
2094 }
2095}
2096impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_in_app_messages::GetInAppMessagesError, R>> for Error
2097where
2098 R: Send + Sync + std::fmt::Debug + 'static,
2099{
2100 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_in_app_messages::GetInAppMessagesError, R>) -> Self {
2101 match err {
2102 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2103 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2104 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2105 source: err.into(),
2106 }),
2107 }
2108 }
2109}
2110impl From<crate::operation::get_in_app_messages::GetInAppMessagesError> for Error {
2111 fn from(err: crate::operation::get_in_app_messages::GetInAppMessagesError) -> Self {
2112 match err {
2113 crate::operation::get_in_app_messages::GetInAppMessagesError::BadRequestException(inner) => Error::BadRequestException(inner),
2114 crate::operation::get_in_app_messages::GetInAppMessagesError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2115 crate::operation::get_in_app_messages::GetInAppMessagesError::InternalServerErrorException(inner) => {
2116 Error::InternalServerErrorException(inner)
2117 }
2118 crate::operation::get_in_app_messages::GetInAppMessagesError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2119 crate::operation::get_in_app_messages::GetInAppMessagesError::NotFoundException(inner) => Error::NotFoundException(inner),
2120 crate::operation::get_in_app_messages::GetInAppMessagesError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2121 crate::operation::get_in_app_messages::GetInAppMessagesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2122 crate::operation::get_in_app_messages::GetInAppMessagesError::Unhandled(inner) => Error::Unhandled(inner),
2123 }
2124 }
2125}
2126impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_in_app_template::GetInAppTemplateError, R>> for Error
2127where
2128 R: Send + Sync + std::fmt::Debug + 'static,
2129{
2130 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_in_app_template::GetInAppTemplateError, R>) -> Self {
2131 match err {
2132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2135 source: err.into(),
2136 }),
2137 }
2138 }
2139}
2140impl From<crate::operation::get_in_app_template::GetInAppTemplateError> for Error {
2141 fn from(err: crate::operation::get_in_app_template::GetInAppTemplateError) -> Self {
2142 match err {
2143 crate::operation::get_in_app_template::GetInAppTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
2144 crate::operation::get_in_app_template::GetInAppTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2145 crate::operation::get_in_app_template::GetInAppTemplateError::InternalServerErrorException(inner) => {
2146 Error::InternalServerErrorException(inner)
2147 }
2148 crate::operation::get_in_app_template::GetInAppTemplateError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2149 crate::operation::get_in_app_template::GetInAppTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
2150 crate::operation::get_in_app_template::GetInAppTemplateError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2151 crate::operation::get_in_app_template::GetInAppTemplateError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2152 crate::operation::get_in_app_template::GetInAppTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2153 }
2154 }
2155}
2156impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_journey::GetJourneyError, R>> for Error
2157where
2158 R: Send + Sync + std::fmt::Debug + 'static,
2159{
2160 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_journey::GetJourneyError, R>) -> Self {
2161 match err {
2162 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2163 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2164 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2165 source: err.into(),
2166 }),
2167 }
2168 }
2169}
2170impl From<crate::operation::get_journey::GetJourneyError> for Error {
2171 fn from(err: crate::operation::get_journey::GetJourneyError) -> Self {
2172 match err {
2173 crate::operation::get_journey::GetJourneyError::BadRequestException(inner) => Error::BadRequestException(inner),
2174 crate::operation::get_journey::GetJourneyError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2175 crate::operation::get_journey::GetJourneyError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2176 crate::operation::get_journey::GetJourneyError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2177 crate::operation::get_journey::GetJourneyError::NotFoundException(inner) => Error::NotFoundException(inner),
2178 crate::operation::get_journey::GetJourneyError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2179 crate::operation::get_journey::GetJourneyError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2180 crate::operation::get_journey::GetJourneyError::Unhandled(inner) => Error::Unhandled(inner),
2181 }
2182 }
2183}
2184impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_journey_date_range_kpi::GetJourneyDateRangeKpiError, R>>
2185 for Error
2186where
2187 R: Send + Sync + std::fmt::Debug + 'static,
2188{
2189 fn from(
2190 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_journey_date_range_kpi::GetJourneyDateRangeKpiError, R>,
2191 ) -> Self {
2192 match err {
2193 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2194 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2195 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2196 source: err.into(),
2197 }),
2198 }
2199 }
2200}
2201impl From<crate::operation::get_journey_date_range_kpi::GetJourneyDateRangeKpiError> for Error {
2202 fn from(err: crate::operation::get_journey_date_range_kpi::GetJourneyDateRangeKpiError) -> Self {
2203 match err {
2204 crate::operation::get_journey_date_range_kpi::GetJourneyDateRangeKpiError::BadRequestException(inner) => {
2205 Error::BadRequestException(inner)
2206 }
2207 crate::operation::get_journey_date_range_kpi::GetJourneyDateRangeKpiError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2208 crate::operation::get_journey_date_range_kpi::GetJourneyDateRangeKpiError::InternalServerErrorException(inner) => {
2209 Error::InternalServerErrorException(inner)
2210 }
2211 crate::operation::get_journey_date_range_kpi::GetJourneyDateRangeKpiError::MethodNotAllowedException(inner) => {
2212 Error::MethodNotAllowedException(inner)
2213 }
2214 crate::operation::get_journey_date_range_kpi::GetJourneyDateRangeKpiError::NotFoundException(inner) => Error::NotFoundException(inner),
2215 crate::operation::get_journey_date_range_kpi::GetJourneyDateRangeKpiError::PayloadTooLargeException(inner) => {
2216 Error::PayloadTooLargeException(inner)
2217 }
2218 crate::operation::get_journey_date_range_kpi::GetJourneyDateRangeKpiError::TooManyRequestsException(inner) => {
2219 Error::TooManyRequestsException(inner)
2220 }
2221 crate::operation::get_journey_date_range_kpi::GetJourneyDateRangeKpiError::Unhandled(inner) => Error::Unhandled(inner),
2222 }
2223 }
2224}
2225impl<R>
2226 From<
2227 ::aws_smithy_runtime_api::client::result::SdkError<
2228 crate::operation::get_journey_execution_activity_metrics::GetJourneyExecutionActivityMetricsError,
2229 R,
2230 >,
2231 > for Error
2232where
2233 R: Send + Sync + std::fmt::Debug + 'static,
2234{
2235 fn from(
2236 err: ::aws_smithy_runtime_api::client::result::SdkError<
2237 crate::operation::get_journey_execution_activity_metrics::GetJourneyExecutionActivityMetricsError,
2238 R,
2239 >,
2240 ) -> Self {
2241 match err {
2242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2245 source: err.into(),
2246 }),
2247 }
2248 }
2249}
2250impl From<crate::operation::get_journey_execution_activity_metrics::GetJourneyExecutionActivityMetricsError> for Error {
2251 fn from(err: crate::operation::get_journey_execution_activity_metrics::GetJourneyExecutionActivityMetricsError) -> Self {
2252 match err {
2253 crate::operation::get_journey_execution_activity_metrics::GetJourneyExecutionActivityMetricsError::BadRequestException(inner) => {
2254 Error::BadRequestException(inner)
2255 }
2256 crate::operation::get_journey_execution_activity_metrics::GetJourneyExecutionActivityMetricsError::ForbiddenException(inner) => {
2257 Error::ForbiddenException(inner)
2258 }
2259 crate::operation::get_journey_execution_activity_metrics::GetJourneyExecutionActivityMetricsError::InternalServerErrorException(
2260 inner,
2261 ) => Error::InternalServerErrorException(inner),
2262 crate::operation::get_journey_execution_activity_metrics::GetJourneyExecutionActivityMetricsError::MethodNotAllowedException(inner) => {
2263 Error::MethodNotAllowedException(inner)
2264 }
2265 crate::operation::get_journey_execution_activity_metrics::GetJourneyExecutionActivityMetricsError::NotFoundException(inner) => {
2266 Error::NotFoundException(inner)
2267 }
2268 crate::operation::get_journey_execution_activity_metrics::GetJourneyExecutionActivityMetricsError::PayloadTooLargeException(inner) => {
2269 Error::PayloadTooLargeException(inner)
2270 }
2271 crate::operation::get_journey_execution_activity_metrics::GetJourneyExecutionActivityMetricsError::TooManyRequestsException(inner) => {
2272 Error::TooManyRequestsException(inner)
2273 }
2274 crate::operation::get_journey_execution_activity_metrics::GetJourneyExecutionActivityMetricsError::Unhandled(inner) => {
2275 Error::Unhandled(inner)
2276 }
2277 }
2278 }
2279}
2280impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_journey_execution_metrics::GetJourneyExecutionMetricsError, R>>
2281 for Error
2282where
2283 R: Send + Sync + std::fmt::Debug + 'static,
2284{
2285 fn from(
2286 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_journey_execution_metrics::GetJourneyExecutionMetricsError, R>,
2287 ) -> Self {
2288 match err {
2289 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2290 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2291 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2292 source: err.into(),
2293 }),
2294 }
2295 }
2296}
2297impl From<crate::operation::get_journey_execution_metrics::GetJourneyExecutionMetricsError> for Error {
2298 fn from(err: crate::operation::get_journey_execution_metrics::GetJourneyExecutionMetricsError) -> Self {
2299 match err {
2300 crate::operation::get_journey_execution_metrics::GetJourneyExecutionMetricsError::BadRequestException(inner) => {
2301 Error::BadRequestException(inner)
2302 }
2303 crate::operation::get_journey_execution_metrics::GetJourneyExecutionMetricsError::ForbiddenException(inner) => {
2304 Error::ForbiddenException(inner)
2305 }
2306 crate::operation::get_journey_execution_metrics::GetJourneyExecutionMetricsError::InternalServerErrorException(inner) => {
2307 Error::InternalServerErrorException(inner)
2308 }
2309 crate::operation::get_journey_execution_metrics::GetJourneyExecutionMetricsError::MethodNotAllowedException(inner) => {
2310 Error::MethodNotAllowedException(inner)
2311 }
2312 crate::operation::get_journey_execution_metrics::GetJourneyExecutionMetricsError::NotFoundException(inner) => {
2313 Error::NotFoundException(inner)
2314 }
2315 crate::operation::get_journey_execution_metrics::GetJourneyExecutionMetricsError::PayloadTooLargeException(inner) => {
2316 Error::PayloadTooLargeException(inner)
2317 }
2318 crate::operation::get_journey_execution_metrics::GetJourneyExecutionMetricsError::TooManyRequestsException(inner) => {
2319 Error::TooManyRequestsException(inner)
2320 }
2321 crate::operation::get_journey_execution_metrics::GetJourneyExecutionMetricsError::Unhandled(inner) => Error::Unhandled(inner),
2322 }
2323 }
2324}
2325impl<R>
2326 From<
2327 ::aws_smithy_runtime_api::client::result::SdkError<
2328 crate::operation::get_journey_run_execution_activity_metrics::GetJourneyRunExecutionActivityMetricsError,
2329 R,
2330 >,
2331 > for Error
2332where
2333 R: Send + Sync + std::fmt::Debug + 'static,
2334{
2335 fn from(
2336 err: ::aws_smithy_runtime_api::client::result::SdkError<
2337 crate::operation::get_journey_run_execution_activity_metrics::GetJourneyRunExecutionActivityMetricsError,
2338 R,
2339 >,
2340 ) -> Self {
2341 match err {
2342 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2343 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2344 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2345 source: err.into(),
2346 }),
2347 }
2348 }
2349}
2350impl From<crate::operation::get_journey_run_execution_activity_metrics::GetJourneyRunExecutionActivityMetricsError> for Error {
2351 fn from(err: crate::operation::get_journey_run_execution_activity_metrics::GetJourneyRunExecutionActivityMetricsError) -> Self {
2352 match err {
2353 crate::operation::get_journey_run_execution_activity_metrics::GetJourneyRunExecutionActivityMetricsError::BadRequestException(inner) => Error::BadRequestException(inner),
2354 crate::operation::get_journey_run_execution_activity_metrics::GetJourneyRunExecutionActivityMetricsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2355 crate::operation::get_journey_run_execution_activity_metrics::GetJourneyRunExecutionActivityMetricsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2356 crate::operation::get_journey_run_execution_activity_metrics::GetJourneyRunExecutionActivityMetricsError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2357 crate::operation::get_journey_run_execution_activity_metrics::GetJourneyRunExecutionActivityMetricsError::NotFoundException(inner) => Error::NotFoundException(inner),
2358 crate::operation::get_journey_run_execution_activity_metrics::GetJourneyRunExecutionActivityMetricsError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2359 crate::operation::get_journey_run_execution_activity_metrics::GetJourneyRunExecutionActivityMetricsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2360 crate::operation::get_journey_run_execution_activity_metrics::GetJourneyRunExecutionActivityMetricsError::Unhandled(inner) => Error::Unhandled(inner),
2361 }
2362 }
2363}
2364impl<R>
2365 From<
2366 ::aws_smithy_runtime_api::client::result::SdkError<
2367 crate::operation::get_journey_run_execution_metrics::GetJourneyRunExecutionMetricsError,
2368 R,
2369 >,
2370 > for Error
2371where
2372 R: Send + Sync + std::fmt::Debug + 'static,
2373{
2374 fn from(
2375 err: ::aws_smithy_runtime_api::client::result::SdkError<
2376 crate::operation::get_journey_run_execution_metrics::GetJourneyRunExecutionMetricsError,
2377 R,
2378 >,
2379 ) -> Self {
2380 match err {
2381 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2382 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2383 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2384 source: err.into(),
2385 }),
2386 }
2387 }
2388}
2389impl From<crate::operation::get_journey_run_execution_metrics::GetJourneyRunExecutionMetricsError> for Error {
2390 fn from(err: crate::operation::get_journey_run_execution_metrics::GetJourneyRunExecutionMetricsError) -> Self {
2391 match err {
2392 crate::operation::get_journey_run_execution_metrics::GetJourneyRunExecutionMetricsError::BadRequestException(inner) => {
2393 Error::BadRequestException(inner)
2394 }
2395 crate::operation::get_journey_run_execution_metrics::GetJourneyRunExecutionMetricsError::ForbiddenException(inner) => {
2396 Error::ForbiddenException(inner)
2397 }
2398 crate::operation::get_journey_run_execution_metrics::GetJourneyRunExecutionMetricsError::InternalServerErrorException(inner) => {
2399 Error::InternalServerErrorException(inner)
2400 }
2401 crate::operation::get_journey_run_execution_metrics::GetJourneyRunExecutionMetricsError::MethodNotAllowedException(inner) => {
2402 Error::MethodNotAllowedException(inner)
2403 }
2404 crate::operation::get_journey_run_execution_metrics::GetJourneyRunExecutionMetricsError::NotFoundException(inner) => {
2405 Error::NotFoundException(inner)
2406 }
2407 crate::operation::get_journey_run_execution_metrics::GetJourneyRunExecutionMetricsError::PayloadTooLargeException(inner) => {
2408 Error::PayloadTooLargeException(inner)
2409 }
2410 crate::operation::get_journey_run_execution_metrics::GetJourneyRunExecutionMetricsError::TooManyRequestsException(inner) => {
2411 Error::TooManyRequestsException(inner)
2412 }
2413 crate::operation::get_journey_run_execution_metrics::GetJourneyRunExecutionMetricsError::Unhandled(inner) => Error::Unhandled(inner),
2414 }
2415 }
2416}
2417impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_journey_runs::GetJourneyRunsError, R>> for Error
2418where
2419 R: Send + Sync + std::fmt::Debug + 'static,
2420{
2421 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_journey_runs::GetJourneyRunsError, R>) -> Self {
2422 match err {
2423 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2424 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2425 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2426 source: err.into(),
2427 }),
2428 }
2429 }
2430}
2431impl From<crate::operation::get_journey_runs::GetJourneyRunsError> for Error {
2432 fn from(err: crate::operation::get_journey_runs::GetJourneyRunsError) -> Self {
2433 match err {
2434 crate::operation::get_journey_runs::GetJourneyRunsError::BadRequestException(inner) => Error::BadRequestException(inner),
2435 crate::operation::get_journey_runs::GetJourneyRunsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2436 crate::operation::get_journey_runs::GetJourneyRunsError::InternalServerErrorException(inner) => {
2437 Error::InternalServerErrorException(inner)
2438 }
2439 crate::operation::get_journey_runs::GetJourneyRunsError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2440 crate::operation::get_journey_runs::GetJourneyRunsError::NotFoundException(inner) => Error::NotFoundException(inner),
2441 crate::operation::get_journey_runs::GetJourneyRunsError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2442 crate::operation::get_journey_runs::GetJourneyRunsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2443 crate::operation::get_journey_runs::GetJourneyRunsError::Unhandled(inner) => Error::Unhandled(inner),
2444 }
2445 }
2446}
2447impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_push_template::GetPushTemplateError, R>> for Error
2448where
2449 R: Send + Sync + std::fmt::Debug + 'static,
2450{
2451 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_push_template::GetPushTemplateError, R>) -> Self {
2452 match err {
2453 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2454 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2455 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2456 source: err.into(),
2457 }),
2458 }
2459 }
2460}
2461impl From<crate::operation::get_push_template::GetPushTemplateError> for Error {
2462 fn from(err: crate::operation::get_push_template::GetPushTemplateError) -> Self {
2463 match err {
2464 crate::operation::get_push_template::GetPushTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
2465 crate::operation::get_push_template::GetPushTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2466 crate::operation::get_push_template::GetPushTemplateError::InternalServerErrorException(inner) => {
2467 Error::InternalServerErrorException(inner)
2468 }
2469 crate::operation::get_push_template::GetPushTemplateError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2470 crate::operation::get_push_template::GetPushTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
2471 crate::operation::get_push_template::GetPushTemplateError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2472 crate::operation::get_push_template::GetPushTemplateError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2473 crate::operation::get_push_template::GetPushTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2474 }
2475 }
2476}
2477impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_recommender_configuration::GetRecommenderConfigurationError, R>>
2478 for Error
2479where
2480 R: Send + Sync + std::fmt::Debug + 'static,
2481{
2482 fn from(
2483 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_recommender_configuration::GetRecommenderConfigurationError, R>,
2484 ) -> Self {
2485 match err {
2486 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2487 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2488 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2489 source: err.into(),
2490 }),
2491 }
2492 }
2493}
2494impl From<crate::operation::get_recommender_configuration::GetRecommenderConfigurationError> for Error {
2495 fn from(err: crate::operation::get_recommender_configuration::GetRecommenderConfigurationError) -> Self {
2496 match err {
2497 crate::operation::get_recommender_configuration::GetRecommenderConfigurationError::BadRequestException(inner) => {
2498 Error::BadRequestException(inner)
2499 }
2500 crate::operation::get_recommender_configuration::GetRecommenderConfigurationError::ForbiddenException(inner) => {
2501 Error::ForbiddenException(inner)
2502 }
2503 crate::operation::get_recommender_configuration::GetRecommenderConfigurationError::InternalServerErrorException(inner) => {
2504 Error::InternalServerErrorException(inner)
2505 }
2506 crate::operation::get_recommender_configuration::GetRecommenderConfigurationError::MethodNotAllowedException(inner) => {
2507 Error::MethodNotAllowedException(inner)
2508 }
2509 crate::operation::get_recommender_configuration::GetRecommenderConfigurationError::NotFoundException(inner) => {
2510 Error::NotFoundException(inner)
2511 }
2512 crate::operation::get_recommender_configuration::GetRecommenderConfigurationError::PayloadTooLargeException(inner) => {
2513 Error::PayloadTooLargeException(inner)
2514 }
2515 crate::operation::get_recommender_configuration::GetRecommenderConfigurationError::TooManyRequestsException(inner) => {
2516 Error::TooManyRequestsException(inner)
2517 }
2518 crate::operation::get_recommender_configuration::GetRecommenderConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2519 }
2520 }
2521}
2522impl<R>
2523 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_recommender_configurations::GetRecommenderConfigurationsError, R>>
2524 for Error
2525where
2526 R: Send + Sync + std::fmt::Debug + 'static,
2527{
2528 fn from(
2529 err: ::aws_smithy_runtime_api::client::result::SdkError<
2530 crate::operation::get_recommender_configurations::GetRecommenderConfigurationsError,
2531 R,
2532 >,
2533 ) -> Self {
2534 match err {
2535 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2536 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2537 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2538 source: err.into(),
2539 }),
2540 }
2541 }
2542}
2543impl From<crate::operation::get_recommender_configurations::GetRecommenderConfigurationsError> for Error {
2544 fn from(err: crate::operation::get_recommender_configurations::GetRecommenderConfigurationsError) -> Self {
2545 match err {
2546 crate::operation::get_recommender_configurations::GetRecommenderConfigurationsError::BadRequestException(inner) => {
2547 Error::BadRequestException(inner)
2548 }
2549 crate::operation::get_recommender_configurations::GetRecommenderConfigurationsError::ForbiddenException(inner) => {
2550 Error::ForbiddenException(inner)
2551 }
2552 crate::operation::get_recommender_configurations::GetRecommenderConfigurationsError::InternalServerErrorException(inner) => {
2553 Error::InternalServerErrorException(inner)
2554 }
2555 crate::operation::get_recommender_configurations::GetRecommenderConfigurationsError::MethodNotAllowedException(inner) => {
2556 Error::MethodNotAllowedException(inner)
2557 }
2558 crate::operation::get_recommender_configurations::GetRecommenderConfigurationsError::NotFoundException(inner) => {
2559 Error::NotFoundException(inner)
2560 }
2561 crate::operation::get_recommender_configurations::GetRecommenderConfigurationsError::PayloadTooLargeException(inner) => {
2562 Error::PayloadTooLargeException(inner)
2563 }
2564 crate::operation::get_recommender_configurations::GetRecommenderConfigurationsError::TooManyRequestsException(inner) => {
2565 Error::TooManyRequestsException(inner)
2566 }
2567 crate::operation::get_recommender_configurations::GetRecommenderConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
2568 }
2569 }
2570}
2571impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segment::GetSegmentError, R>> for Error
2572where
2573 R: Send + Sync + std::fmt::Debug + 'static,
2574{
2575 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segment::GetSegmentError, R>) -> Self {
2576 match err {
2577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2580 source: err.into(),
2581 }),
2582 }
2583 }
2584}
2585impl From<crate::operation::get_segment::GetSegmentError> for Error {
2586 fn from(err: crate::operation::get_segment::GetSegmentError) -> Self {
2587 match err {
2588 crate::operation::get_segment::GetSegmentError::BadRequestException(inner) => Error::BadRequestException(inner),
2589 crate::operation::get_segment::GetSegmentError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2590 crate::operation::get_segment::GetSegmentError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2591 crate::operation::get_segment::GetSegmentError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2592 crate::operation::get_segment::GetSegmentError::NotFoundException(inner) => Error::NotFoundException(inner),
2593 crate::operation::get_segment::GetSegmentError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2594 crate::operation::get_segment::GetSegmentError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2595 crate::operation::get_segment::GetSegmentError::Unhandled(inner) => Error::Unhandled(inner),
2596 }
2597 }
2598}
2599impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segment_export_jobs::GetSegmentExportJobsError, R>> for Error
2600where
2601 R: Send + Sync + std::fmt::Debug + 'static,
2602{
2603 fn from(
2604 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segment_export_jobs::GetSegmentExportJobsError, R>,
2605 ) -> Self {
2606 match err {
2607 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2608 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2609 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2610 source: err.into(),
2611 }),
2612 }
2613 }
2614}
2615impl From<crate::operation::get_segment_export_jobs::GetSegmentExportJobsError> for Error {
2616 fn from(err: crate::operation::get_segment_export_jobs::GetSegmentExportJobsError) -> Self {
2617 match err {
2618 crate::operation::get_segment_export_jobs::GetSegmentExportJobsError::BadRequestException(inner) => Error::BadRequestException(inner),
2619 crate::operation::get_segment_export_jobs::GetSegmentExportJobsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2620 crate::operation::get_segment_export_jobs::GetSegmentExportJobsError::InternalServerErrorException(inner) => {
2621 Error::InternalServerErrorException(inner)
2622 }
2623 crate::operation::get_segment_export_jobs::GetSegmentExportJobsError::MethodNotAllowedException(inner) => {
2624 Error::MethodNotAllowedException(inner)
2625 }
2626 crate::operation::get_segment_export_jobs::GetSegmentExportJobsError::NotFoundException(inner) => Error::NotFoundException(inner),
2627 crate::operation::get_segment_export_jobs::GetSegmentExportJobsError::PayloadTooLargeException(inner) => {
2628 Error::PayloadTooLargeException(inner)
2629 }
2630 crate::operation::get_segment_export_jobs::GetSegmentExportJobsError::TooManyRequestsException(inner) => {
2631 Error::TooManyRequestsException(inner)
2632 }
2633 crate::operation::get_segment_export_jobs::GetSegmentExportJobsError::Unhandled(inner) => Error::Unhandled(inner),
2634 }
2635 }
2636}
2637impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segment_import_jobs::GetSegmentImportJobsError, R>> for Error
2638where
2639 R: Send + Sync + std::fmt::Debug + 'static,
2640{
2641 fn from(
2642 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segment_import_jobs::GetSegmentImportJobsError, R>,
2643 ) -> Self {
2644 match err {
2645 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2646 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2647 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2648 source: err.into(),
2649 }),
2650 }
2651 }
2652}
2653impl From<crate::operation::get_segment_import_jobs::GetSegmentImportJobsError> for Error {
2654 fn from(err: crate::operation::get_segment_import_jobs::GetSegmentImportJobsError) -> Self {
2655 match err {
2656 crate::operation::get_segment_import_jobs::GetSegmentImportJobsError::BadRequestException(inner) => Error::BadRequestException(inner),
2657 crate::operation::get_segment_import_jobs::GetSegmentImportJobsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2658 crate::operation::get_segment_import_jobs::GetSegmentImportJobsError::InternalServerErrorException(inner) => {
2659 Error::InternalServerErrorException(inner)
2660 }
2661 crate::operation::get_segment_import_jobs::GetSegmentImportJobsError::MethodNotAllowedException(inner) => {
2662 Error::MethodNotAllowedException(inner)
2663 }
2664 crate::operation::get_segment_import_jobs::GetSegmentImportJobsError::NotFoundException(inner) => Error::NotFoundException(inner),
2665 crate::operation::get_segment_import_jobs::GetSegmentImportJobsError::PayloadTooLargeException(inner) => {
2666 Error::PayloadTooLargeException(inner)
2667 }
2668 crate::operation::get_segment_import_jobs::GetSegmentImportJobsError::TooManyRequestsException(inner) => {
2669 Error::TooManyRequestsException(inner)
2670 }
2671 crate::operation::get_segment_import_jobs::GetSegmentImportJobsError::Unhandled(inner) => Error::Unhandled(inner),
2672 }
2673 }
2674}
2675impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segments::GetSegmentsError, R>> for Error
2676where
2677 R: Send + Sync + std::fmt::Debug + 'static,
2678{
2679 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segments::GetSegmentsError, R>) -> Self {
2680 match err {
2681 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2682 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2683 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2684 source: err.into(),
2685 }),
2686 }
2687 }
2688}
2689impl From<crate::operation::get_segments::GetSegmentsError> for Error {
2690 fn from(err: crate::operation::get_segments::GetSegmentsError) -> Self {
2691 match err {
2692 crate::operation::get_segments::GetSegmentsError::BadRequestException(inner) => Error::BadRequestException(inner),
2693 crate::operation::get_segments::GetSegmentsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2694 crate::operation::get_segments::GetSegmentsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2695 crate::operation::get_segments::GetSegmentsError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2696 crate::operation::get_segments::GetSegmentsError::NotFoundException(inner) => Error::NotFoundException(inner),
2697 crate::operation::get_segments::GetSegmentsError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2698 crate::operation::get_segments::GetSegmentsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2699 crate::operation::get_segments::GetSegmentsError::Unhandled(inner) => Error::Unhandled(inner),
2700 }
2701 }
2702}
2703impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segment_version::GetSegmentVersionError, R>> for Error
2704where
2705 R: Send + Sync + std::fmt::Debug + 'static,
2706{
2707 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segment_version::GetSegmentVersionError, R>) -> Self {
2708 match err {
2709 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2710 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2711 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2712 source: err.into(),
2713 }),
2714 }
2715 }
2716}
2717impl From<crate::operation::get_segment_version::GetSegmentVersionError> for Error {
2718 fn from(err: crate::operation::get_segment_version::GetSegmentVersionError) -> Self {
2719 match err {
2720 crate::operation::get_segment_version::GetSegmentVersionError::BadRequestException(inner) => Error::BadRequestException(inner),
2721 crate::operation::get_segment_version::GetSegmentVersionError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2722 crate::operation::get_segment_version::GetSegmentVersionError::InternalServerErrorException(inner) => {
2723 Error::InternalServerErrorException(inner)
2724 }
2725 crate::operation::get_segment_version::GetSegmentVersionError::MethodNotAllowedException(inner) => {
2726 Error::MethodNotAllowedException(inner)
2727 }
2728 crate::operation::get_segment_version::GetSegmentVersionError::NotFoundException(inner) => Error::NotFoundException(inner),
2729 crate::operation::get_segment_version::GetSegmentVersionError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2730 crate::operation::get_segment_version::GetSegmentVersionError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2731 crate::operation::get_segment_version::GetSegmentVersionError::Unhandled(inner) => Error::Unhandled(inner),
2732 }
2733 }
2734}
2735impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segment_versions::GetSegmentVersionsError, R>> for Error
2736where
2737 R: Send + Sync + std::fmt::Debug + 'static,
2738{
2739 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segment_versions::GetSegmentVersionsError, R>) -> Self {
2740 match err {
2741 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2742 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2743 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2744 source: err.into(),
2745 }),
2746 }
2747 }
2748}
2749impl From<crate::operation::get_segment_versions::GetSegmentVersionsError> for Error {
2750 fn from(err: crate::operation::get_segment_versions::GetSegmentVersionsError) -> Self {
2751 match err {
2752 crate::operation::get_segment_versions::GetSegmentVersionsError::BadRequestException(inner) => Error::BadRequestException(inner),
2753 crate::operation::get_segment_versions::GetSegmentVersionsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2754 crate::operation::get_segment_versions::GetSegmentVersionsError::InternalServerErrorException(inner) => {
2755 Error::InternalServerErrorException(inner)
2756 }
2757 crate::operation::get_segment_versions::GetSegmentVersionsError::MethodNotAllowedException(inner) => {
2758 Error::MethodNotAllowedException(inner)
2759 }
2760 crate::operation::get_segment_versions::GetSegmentVersionsError::NotFoundException(inner) => Error::NotFoundException(inner),
2761 crate::operation::get_segment_versions::GetSegmentVersionsError::PayloadTooLargeException(inner) => {
2762 Error::PayloadTooLargeException(inner)
2763 }
2764 crate::operation::get_segment_versions::GetSegmentVersionsError::TooManyRequestsException(inner) => {
2765 Error::TooManyRequestsException(inner)
2766 }
2767 crate::operation::get_segment_versions::GetSegmentVersionsError::Unhandled(inner) => Error::Unhandled(inner),
2768 }
2769 }
2770}
2771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sms_channel::GetSmsChannelError, R>> for Error
2772where
2773 R: Send + Sync + std::fmt::Debug + 'static,
2774{
2775 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sms_channel::GetSmsChannelError, R>) -> Self {
2776 match err {
2777 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2778 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2779 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2780 source: err.into(),
2781 }),
2782 }
2783 }
2784}
2785impl From<crate::operation::get_sms_channel::GetSmsChannelError> for Error {
2786 fn from(err: crate::operation::get_sms_channel::GetSmsChannelError) -> Self {
2787 match err {
2788 crate::operation::get_sms_channel::GetSmsChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
2789 crate::operation::get_sms_channel::GetSmsChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2790 crate::operation::get_sms_channel::GetSmsChannelError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2791 crate::operation::get_sms_channel::GetSmsChannelError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2792 crate::operation::get_sms_channel::GetSmsChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
2793 crate::operation::get_sms_channel::GetSmsChannelError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2794 crate::operation::get_sms_channel::GetSmsChannelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2795 crate::operation::get_sms_channel::GetSmsChannelError::Unhandled(inner) => Error::Unhandled(inner),
2796 }
2797 }
2798}
2799impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sms_template::GetSmsTemplateError, R>> for Error
2800where
2801 R: Send + Sync + std::fmt::Debug + 'static,
2802{
2803 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sms_template::GetSmsTemplateError, R>) -> Self {
2804 match err {
2805 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2806 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2807 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2808 source: err.into(),
2809 }),
2810 }
2811 }
2812}
2813impl From<crate::operation::get_sms_template::GetSmsTemplateError> for Error {
2814 fn from(err: crate::operation::get_sms_template::GetSmsTemplateError) -> Self {
2815 match err {
2816 crate::operation::get_sms_template::GetSmsTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
2817 crate::operation::get_sms_template::GetSmsTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2818 crate::operation::get_sms_template::GetSmsTemplateError::InternalServerErrorException(inner) => {
2819 Error::InternalServerErrorException(inner)
2820 }
2821 crate::operation::get_sms_template::GetSmsTemplateError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2822 crate::operation::get_sms_template::GetSmsTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
2823 crate::operation::get_sms_template::GetSmsTemplateError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2824 crate::operation::get_sms_template::GetSmsTemplateError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2825 crate::operation::get_sms_template::GetSmsTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2826 }
2827 }
2828}
2829impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user_endpoints::GetUserEndpointsError, R>> for Error
2830where
2831 R: Send + Sync + std::fmt::Debug + 'static,
2832{
2833 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user_endpoints::GetUserEndpointsError, R>) -> Self {
2834 match err {
2835 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2836 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2837 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2838 source: err.into(),
2839 }),
2840 }
2841 }
2842}
2843impl From<crate::operation::get_user_endpoints::GetUserEndpointsError> for Error {
2844 fn from(err: crate::operation::get_user_endpoints::GetUserEndpointsError) -> Self {
2845 match err {
2846 crate::operation::get_user_endpoints::GetUserEndpointsError::BadRequestException(inner) => Error::BadRequestException(inner),
2847 crate::operation::get_user_endpoints::GetUserEndpointsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2848 crate::operation::get_user_endpoints::GetUserEndpointsError::InternalServerErrorException(inner) => {
2849 Error::InternalServerErrorException(inner)
2850 }
2851 crate::operation::get_user_endpoints::GetUserEndpointsError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2852 crate::operation::get_user_endpoints::GetUserEndpointsError::NotFoundException(inner) => Error::NotFoundException(inner),
2853 crate::operation::get_user_endpoints::GetUserEndpointsError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2854 crate::operation::get_user_endpoints::GetUserEndpointsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2855 crate::operation::get_user_endpoints::GetUserEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
2856 }
2857 }
2858}
2859impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_voice_channel::GetVoiceChannelError, R>> for Error
2860where
2861 R: Send + Sync + std::fmt::Debug + 'static,
2862{
2863 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_voice_channel::GetVoiceChannelError, R>) -> Self {
2864 match err {
2865 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2866 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2867 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2868 source: err.into(),
2869 }),
2870 }
2871 }
2872}
2873impl From<crate::operation::get_voice_channel::GetVoiceChannelError> for Error {
2874 fn from(err: crate::operation::get_voice_channel::GetVoiceChannelError) -> Self {
2875 match err {
2876 crate::operation::get_voice_channel::GetVoiceChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
2877 crate::operation::get_voice_channel::GetVoiceChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2878 crate::operation::get_voice_channel::GetVoiceChannelError::InternalServerErrorException(inner) => {
2879 Error::InternalServerErrorException(inner)
2880 }
2881 crate::operation::get_voice_channel::GetVoiceChannelError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2882 crate::operation::get_voice_channel::GetVoiceChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
2883 crate::operation::get_voice_channel::GetVoiceChannelError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2884 crate::operation::get_voice_channel::GetVoiceChannelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2885 crate::operation::get_voice_channel::GetVoiceChannelError::Unhandled(inner) => Error::Unhandled(inner),
2886 }
2887 }
2888}
2889impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_voice_template::GetVoiceTemplateError, R>> for Error
2890where
2891 R: Send + Sync + std::fmt::Debug + 'static,
2892{
2893 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_voice_template::GetVoiceTemplateError, R>) -> Self {
2894 match err {
2895 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2896 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2897 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2898 source: err.into(),
2899 }),
2900 }
2901 }
2902}
2903impl From<crate::operation::get_voice_template::GetVoiceTemplateError> for Error {
2904 fn from(err: crate::operation::get_voice_template::GetVoiceTemplateError) -> Self {
2905 match err {
2906 crate::operation::get_voice_template::GetVoiceTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
2907 crate::operation::get_voice_template::GetVoiceTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2908 crate::operation::get_voice_template::GetVoiceTemplateError::InternalServerErrorException(inner) => {
2909 Error::InternalServerErrorException(inner)
2910 }
2911 crate::operation::get_voice_template::GetVoiceTemplateError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2912 crate::operation::get_voice_template::GetVoiceTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
2913 crate::operation::get_voice_template::GetVoiceTemplateError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2914 crate::operation::get_voice_template::GetVoiceTemplateError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2915 crate::operation::get_voice_template::GetVoiceTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2916 }
2917 }
2918}
2919impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_journeys::ListJourneysError, R>> for Error
2920where
2921 R: Send + Sync + std::fmt::Debug + 'static,
2922{
2923 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_journeys::ListJourneysError, R>) -> Self {
2924 match err {
2925 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2926 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2927 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2928 source: err.into(),
2929 }),
2930 }
2931 }
2932}
2933impl From<crate::operation::list_journeys::ListJourneysError> for Error {
2934 fn from(err: crate::operation::list_journeys::ListJourneysError) -> Self {
2935 match err {
2936 crate::operation::list_journeys::ListJourneysError::BadRequestException(inner) => Error::BadRequestException(inner),
2937 crate::operation::list_journeys::ListJourneysError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2938 crate::operation::list_journeys::ListJourneysError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2939 crate::operation::list_journeys::ListJourneysError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2940 crate::operation::list_journeys::ListJourneysError::NotFoundException(inner) => Error::NotFoundException(inner),
2941 crate::operation::list_journeys::ListJourneysError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
2942 crate::operation::list_journeys::ListJourneysError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2943 crate::operation::list_journeys::ListJourneysError::Unhandled(inner) => Error::Unhandled(inner),
2944 }
2945 }
2946}
2947impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2948where
2949 R: Send + Sync + std::fmt::Debug + 'static,
2950{
2951 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2952 match err {
2953 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2954 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2955 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2956 source: err.into(),
2957 }),
2958 }
2959 }
2960}
2961impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2962 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2963 match err {
2964 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2965 }
2966 }
2967}
2968impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>> for Error
2969where
2970 R: Send + Sync + std::fmt::Debug + 'static,
2971{
2972 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>) -> Self {
2973 match err {
2974 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2975 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2976 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2977 source: err.into(),
2978 }),
2979 }
2980 }
2981}
2982impl From<crate::operation::list_templates::ListTemplatesError> for Error {
2983 fn from(err: crate::operation::list_templates::ListTemplatesError) -> Self {
2984 match err {
2985 crate::operation::list_templates::ListTemplatesError::BadRequestException(inner) => Error::BadRequestException(inner),
2986 crate::operation::list_templates::ListTemplatesError::ForbiddenException(inner) => Error::ForbiddenException(inner),
2987 crate::operation::list_templates::ListTemplatesError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
2988 crate::operation::list_templates::ListTemplatesError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
2989 crate::operation::list_templates::ListTemplatesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2990 crate::operation::list_templates::ListTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
2991 }
2992 }
2993}
2994impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_template_versions::ListTemplateVersionsError, R>> for Error
2995where
2996 R: Send + Sync + std::fmt::Debug + 'static,
2997{
2998 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_template_versions::ListTemplateVersionsError, R>) -> Self {
2999 match err {
3000 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3001 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3002 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3003 source: err.into(),
3004 }),
3005 }
3006 }
3007}
3008impl From<crate::operation::list_template_versions::ListTemplateVersionsError> for Error {
3009 fn from(err: crate::operation::list_template_versions::ListTemplateVersionsError) -> Self {
3010 match err {
3011 crate::operation::list_template_versions::ListTemplateVersionsError::BadRequestException(inner) => Error::BadRequestException(inner),
3012 crate::operation::list_template_versions::ListTemplateVersionsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3013 crate::operation::list_template_versions::ListTemplateVersionsError::InternalServerErrorException(inner) => {
3014 Error::InternalServerErrorException(inner)
3015 }
3016 crate::operation::list_template_versions::ListTemplateVersionsError::MethodNotAllowedException(inner) => {
3017 Error::MethodNotAllowedException(inner)
3018 }
3019 crate::operation::list_template_versions::ListTemplateVersionsError::NotFoundException(inner) => Error::NotFoundException(inner),
3020 crate::operation::list_template_versions::ListTemplateVersionsError::PayloadTooLargeException(inner) => {
3021 Error::PayloadTooLargeException(inner)
3022 }
3023 crate::operation::list_template_versions::ListTemplateVersionsError::TooManyRequestsException(inner) => {
3024 Error::TooManyRequestsException(inner)
3025 }
3026 crate::operation::list_template_versions::ListTemplateVersionsError::Unhandled(inner) => Error::Unhandled(inner),
3027 }
3028 }
3029}
3030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::phone_number_validate::PhoneNumberValidateError, R>> for Error
3031where
3032 R: Send + Sync + std::fmt::Debug + 'static,
3033{
3034 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::phone_number_validate::PhoneNumberValidateError, R>) -> Self {
3035 match err {
3036 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3037 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3038 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3039 source: err.into(),
3040 }),
3041 }
3042 }
3043}
3044impl From<crate::operation::phone_number_validate::PhoneNumberValidateError> for Error {
3045 fn from(err: crate::operation::phone_number_validate::PhoneNumberValidateError) -> Self {
3046 match err {
3047 crate::operation::phone_number_validate::PhoneNumberValidateError::BadRequestException(inner) => Error::BadRequestException(inner),
3048 crate::operation::phone_number_validate::PhoneNumberValidateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3049 crate::operation::phone_number_validate::PhoneNumberValidateError::InternalServerErrorException(inner) => {
3050 Error::InternalServerErrorException(inner)
3051 }
3052 crate::operation::phone_number_validate::PhoneNumberValidateError::MethodNotAllowedException(inner) => {
3053 Error::MethodNotAllowedException(inner)
3054 }
3055 crate::operation::phone_number_validate::PhoneNumberValidateError::NotFoundException(inner) => Error::NotFoundException(inner),
3056 crate::operation::phone_number_validate::PhoneNumberValidateError::PayloadTooLargeException(inner) => {
3057 Error::PayloadTooLargeException(inner)
3058 }
3059 crate::operation::phone_number_validate::PhoneNumberValidateError::TooManyRequestsException(inner) => {
3060 Error::TooManyRequestsException(inner)
3061 }
3062 crate::operation::phone_number_validate::PhoneNumberValidateError::Unhandled(inner) => Error::Unhandled(inner),
3063 }
3064 }
3065}
3066impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_events::PutEventsError, R>> for Error
3067where
3068 R: Send + Sync + std::fmt::Debug + 'static,
3069{
3070 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_events::PutEventsError, R>) -> Self {
3071 match err {
3072 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3073 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3074 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3075 source: err.into(),
3076 }),
3077 }
3078 }
3079}
3080impl From<crate::operation::put_events::PutEventsError> for Error {
3081 fn from(err: crate::operation::put_events::PutEventsError) -> Self {
3082 match err {
3083 crate::operation::put_events::PutEventsError::BadRequestException(inner) => Error::BadRequestException(inner),
3084 crate::operation::put_events::PutEventsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3085 crate::operation::put_events::PutEventsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3086 crate::operation::put_events::PutEventsError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
3087 crate::operation::put_events::PutEventsError::NotFoundException(inner) => Error::NotFoundException(inner),
3088 crate::operation::put_events::PutEventsError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
3089 crate::operation::put_events::PutEventsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3090 crate::operation::put_events::PutEventsError::Unhandled(inner) => Error::Unhandled(inner),
3091 }
3092 }
3093}
3094impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_event_stream::PutEventStreamError, R>> for Error
3095where
3096 R: Send + Sync + std::fmt::Debug + 'static,
3097{
3098 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_event_stream::PutEventStreamError, R>) -> Self {
3099 match err {
3100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3103 source: err.into(),
3104 }),
3105 }
3106 }
3107}
3108impl From<crate::operation::put_event_stream::PutEventStreamError> for Error {
3109 fn from(err: crate::operation::put_event_stream::PutEventStreamError) -> Self {
3110 match err {
3111 crate::operation::put_event_stream::PutEventStreamError::BadRequestException(inner) => Error::BadRequestException(inner),
3112 crate::operation::put_event_stream::PutEventStreamError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3113 crate::operation::put_event_stream::PutEventStreamError::InternalServerErrorException(inner) => {
3114 Error::InternalServerErrorException(inner)
3115 }
3116 crate::operation::put_event_stream::PutEventStreamError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
3117 crate::operation::put_event_stream::PutEventStreamError::NotFoundException(inner) => Error::NotFoundException(inner),
3118 crate::operation::put_event_stream::PutEventStreamError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
3119 crate::operation::put_event_stream::PutEventStreamError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3120 crate::operation::put_event_stream::PutEventStreamError::Unhandled(inner) => Error::Unhandled(inner),
3121 }
3122 }
3123}
3124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_attributes::RemoveAttributesError, R>> for Error
3125where
3126 R: Send + Sync + std::fmt::Debug + 'static,
3127{
3128 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_attributes::RemoveAttributesError, R>) -> Self {
3129 match err {
3130 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3131 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3132 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3133 source: err.into(),
3134 }),
3135 }
3136 }
3137}
3138impl From<crate::operation::remove_attributes::RemoveAttributesError> for Error {
3139 fn from(err: crate::operation::remove_attributes::RemoveAttributesError) -> Self {
3140 match err {
3141 crate::operation::remove_attributes::RemoveAttributesError::BadRequestException(inner) => Error::BadRequestException(inner),
3142 crate::operation::remove_attributes::RemoveAttributesError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3143 crate::operation::remove_attributes::RemoveAttributesError::InternalServerErrorException(inner) => {
3144 Error::InternalServerErrorException(inner)
3145 }
3146 crate::operation::remove_attributes::RemoveAttributesError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
3147 crate::operation::remove_attributes::RemoveAttributesError::NotFoundException(inner) => Error::NotFoundException(inner),
3148 crate::operation::remove_attributes::RemoveAttributesError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
3149 crate::operation::remove_attributes::RemoveAttributesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3150 crate::operation::remove_attributes::RemoveAttributesError::Unhandled(inner) => Error::Unhandled(inner),
3151 }
3152 }
3153}
3154impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_messages::SendMessagesError, R>> for Error
3155where
3156 R: Send + Sync + std::fmt::Debug + 'static,
3157{
3158 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_messages::SendMessagesError, R>) -> Self {
3159 match err {
3160 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3161 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3162 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3163 source: err.into(),
3164 }),
3165 }
3166 }
3167}
3168impl From<crate::operation::send_messages::SendMessagesError> for Error {
3169 fn from(err: crate::operation::send_messages::SendMessagesError) -> Self {
3170 match err {
3171 crate::operation::send_messages::SendMessagesError::BadRequestException(inner) => Error::BadRequestException(inner),
3172 crate::operation::send_messages::SendMessagesError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3173 crate::operation::send_messages::SendMessagesError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3174 crate::operation::send_messages::SendMessagesError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
3175 crate::operation::send_messages::SendMessagesError::NotFoundException(inner) => Error::NotFoundException(inner),
3176 crate::operation::send_messages::SendMessagesError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
3177 crate::operation::send_messages::SendMessagesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3178 crate::operation::send_messages::SendMessagesError::Unhandled(inner) => Error::Unhandled(inner),
3179 }
3180 }
3181}
3182impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_otp_message::SendOTPMessageError, R>> for Error
3183where
3184 R: Send + Sync + std::fmt::Debug + 'static,
3185{
3186 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_otp_message::SendOTPMessageError, R>) -> Self {
3187 match err {
3188 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3189 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3190 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3191 source: err.into(),
3192 }),
3193 }
3194 }
3195}
3196impl From<crate::operation::send_otp_message::SendOTPMessageError> for Error {
3197 fn from(err: crate::operation::send_otp_message::SendOTPMessageError) -> Self {
3198 match err {
3199 crate::operation::send_otp_message::SendOTPMessageError::BadRequestException(inner) => Error::BadRequestException(inner),
3200 crate::operation::send_otp_message::SendOTPMessageError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3201 crate::operation::send_otp_message::SendOTPMessageError::InternalServerErrorException(inner) => {
3202 Error::InternalServerErrorException(inner)
3203 }
3204 crate::operation::send_otp_message::SendOTPMessageError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
3205 crate::operation::send_otp_message::SendOTPMessageError::NotFoundException(inner) => Error::NotFoundException(inner),
3206 crate::operation::send_otp_message::SendOTPMessageError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
3207 crate::operation::send_otp_message::SendOTPMessageError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3208 crate::operation::send_otp_message::SendOTPMessageError::Unhandled(inner) => Error::Unhandled(inner),
3209 }
3210 }
3211}
3212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_users_messages::SendUsersMessagesError, R>> for Error
3213where
3214 R: Send + Sync + std::fmt::Debug + 'static,
3215{
3216 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_users_messages::SendUsersMessagesError, R>) -> Self {
3217 match err {
3218 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3219 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3220 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3221 source: err.into(),
3222 }),
3223 }
3224 }
3225}
3226impl From<crate::operation::send_users_messages::SendUsersMessagesError> for Error {
3227 fn from(err: crate::operation::send_users_messages::SendUsersMessagesError) -> Self {
3228 match err {
3229 crate::operation::send_users_messages::SendUsersMessagesError::BadRequestException(inner) => Error::BadRequestException(inner),
3230 crate::operation::send_users_messages::SendUsersMessagesError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3231 crate::operation::send_users_messages::SendUsersMessagesError::InternalServerErrorException(inner) => {
3232 Error::InternalServerErrorException(inner)
3233 }
3234 crate::operation::send_users_messages::SendUsersMessagesError::MethodNotAllowedException(inner) => {
3235 Error::MethodNotAllowedException(inner)
3236 }
3237 crate::operation::send_users_messages::SendUsersMessagesError::NotFoundException(inner) => Error::NotFoundException(inner),
3238 crate::operation::send_users_messages::SendUsersMessagesError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
3239 crate::operation::send_users_messages::SendUsersMessagesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3240 crate::operation::send_users_messages::SendUsersMessagesError::Unhandled(inner) => Error::Unhandled(inner),
3241 }
3242 }
3243}
3244impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
3245where
3246 R: Send + Sync + std::fmt::Debug + 'static,
3247{
3248 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
3249 match err {
3250 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3251 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3252 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3253 source: err.into(),
3254 }),
3255 }
3256 }
3257}
3258impl From<crate::operation::tag_resource::TagResourceError> for Error {
3259 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
3260 match err {
3261 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3262 }
3263 }
3264}
3265impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
3266where
3267 R: Send + Sync + std::fmt::Debug + 'static,
3268{
3269 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
3270 match err {
3271 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3272 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3273 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3274 source: err.into(),
3275 }),
3276 }
3277 }
3278}
3279impl From<crate::operation::untag_resource::UntagResourceError> for Error {
3280 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
3281 match err {
3282 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3283 }
3284 }
3285}
3286impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_adm_channel::UpdateAdmChannelError, R>> for Error
3287where
3288 R: Send + Sync + std::fmt::Debug + 'static,
3289{
3290 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_adm_channel::UpdateAdmChannelError, R>) -> Self {
3291 match err {
3292 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3293 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3294 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3295 source: err.into(),
3296 }),
3297 }
3298 }
3299}
3300impl From<crate::operation::update_adm_channel::UpdateAdmChannelError> for Error {
3301 fn from(err: crate::operation::update_adm_channel::UpdateAdmChannelError) -> Self {
3302 match err {
3303 crate::operation::update_adm_channel::UpdateAdmChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
3304 crate::operation::update_adm_channel::UpdateAdmChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3305 crate::operation::update_adm_channel::UpdateAdmChannelError::InternalServerErrorException(inner) => {
3306 Error::InternalServerErrorException(inner)
3307 }
3308 crate::operation::update_adm_channel::UpdateAdmChannelError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
3309 crate::operation::update_adm_channel::UpdateAdmChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
3310 crate::operation::update_adm_channel::UpdateAdmChannelError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
3311 crate::operation::update_adm_channel::UpdateAdmChannelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3312 crate::operation::update_adm_channel::UpdateAdmChannelError::Unhandled(inner) => Error::Unhandled(inner),
3313 }
3314 }
3315}
3316impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_apns_channel::UpdateApnsChannelError, R>> for Error
3317where
3318 R: Send + Sync + std::fmt::Debug + 'static,
3319{
3320 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_apns_channel::UpdateApnsChannelError, R>) -> Self {
3321 match err {
3322 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3323 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3324 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3325 source: err.into(),
3326 }),
3327 }
3328 }
3329}
3330impl From<crate::operation::update_apns_channel::UpdateApnsChannelError> for Error {
3331 fn from(err: crate::operation::update_apns_channel::UpdateApnsChannelError) -> Self {
3332 match err {
3333 crate::operation::update_apns_channel::UpdateApnsChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
3334 crate::operation::update_apns_channel::UpdateApnsChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3335 crate::operation::update_apns_channel::UpdateApnsChannelError::InternalServerErrorException(inner) => {
3336 Error::InternalServerErrorException(inner)
3337 }
3338 crate::operation::update_apns_channel::UpdateApnsChannelError::MethodNotAllowedException(inner) => {
3339 Error::MethodNotAllowedException(inner)
3340 }
3341 crate::operation::update_apns_channel::UpdateApnsChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
3342 crate::operation::update_apns_channel::UpdateApnsChannelError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
3343 crate::operation::update_apns_channel::UpdateApnsChannelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3344 crate::operation::update_apns_channel::UpdateApnsChannelError::Unhandled(inner) => Error::Unhandled(inner),
3345 }
3346 }
3347}
3348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_apns_sandbox_channel::UpdateApnsSandboxChannelError, R>>
3349 for Error
3350where
3351 R: Send + Sync + std::fmt::Debug + 'static,
3352{
3353 fn from(
3354 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_apns_sandbox_channel::UpdateApnsSandboxChannelError, R>,
3355 ) -> Self {
3356 match err {
3357 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3358 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3359 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3360 source: err.into(),
3361 }),
3362 }
3363 }
3364}
3365impl From<crate::operation::update_apns_sandbox_channel::UpdateApnsSandboxChannelError> for Error {
3366 fn from(err: crate::operation::update_apns_sandbox_channel::UpdateApnsSandboxChannelError) -> Self {
3367 match err {
3368 crate::operation::update_apns_sandbox_channel::UpdateApnsSandboxChannelError::BadRequestException(inner) => {
3369 Error::BadRequestException(inner)
3370 }
3371 crate::operation::update_apns_sandbox_channel::UpdateApnsSandboxChannelError::ForbiddenException(inner) => {
3372 Error::ForbiddenException(inner)
3373 }
3374 crate::operation::update_apns_sandbox_channel::UpdateApnsSandboxChannelError::InternalServerErrorException(inner) => {
3375 Error::InternalServerErrorException(inner)
3376 }
3377 crate::operation::update_apns_sandbox_channel::UpdateApnsSandboxChannelError::MethodNotAllowedException(inner) => {
3378 Error::MethodNotAllowedException(inner)
3379 }
3380 crate::operation::update_apns_sandbox_channel::UpdateApnsSandboxChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
3381 crate::operation::update_apns_sandbox_channel::UpdateApnsSandboxChannelError::PayloadTooLargeException(inner) => {
3382 Error::PayloadTooLargeException(inner)
3383 }
3384 crate::operation::update_apns_sandbox_channel::UpdateApnsSandboxChannelError::TooManyRequestsException(inner) => {
3385 Error::TooManyRequestsException(inner)
3386 }
3387 crate::operation::update_apns_sandbox_channel::UpdateApnsSandboxChannelError::Unhandled(inner) => Error::Unhandled(inner),
3388 }
3389 }
3390}
3391impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_apns_voip_channel::UpdateApnsVoipChannelError, R>> for Error
3392where
3393 R: Send + Sync + std::fmt::Debug + 'static,
3394{
3395 fn from(
3396 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_apns_voip_channel::UpdateApnsVoipChannelError, R>,
3397 ) -> Self {
3398 match err {
3399 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3400 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3401 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3402 source: err.into(),
3403 }),
3404 }
3405 }
3406}
3407impl From<crate::operation::update_apns_voip_channel::UpdateApnsVoipChannelError> for Error {
3408 fn from(err: crate::operation::update_apns_voip_channel::UpdateApnsVoipChannelError) -> Self {
3409 match err {
3410 crate::operation::update_apns_voip_channel::UpdateApnsVoipChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
3411 crate::operation::update_apns_voip_channel::UpdateApnsVoipChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3412 crate::operation::update_apns_voip_channel::UpdateApnsVoipChannelError::InternalServerErrorException(inner) => {
3413 Error::InternalServerErrorException(inner)
3414 }
3415 crate::operation::update_apns_voip_channel::UpdateApnsVoipChannelError::MethodNotAllowedException(inner) => {
3416 Error::MethodNotAllowedException(inner)
3417 }
3418 crate::operation::update_apns_voip_channel::UpdateApnsVoipChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
3419 crate::operation::update_apns_voip_channel::UpdateApnsVoipChannelError::PayloadTooLargeException(inner) => {
3420 Error::PayloadTooLargeException(inner)
3421 }
3422 crate::operation::update_apns_voip_channel::UpdateApnsVoipChannelError::TooManyRequestsException(inner) => {
3423 Error::TooManyRequestsException(inner)
3424 }
3425 crate::operation::update_apns_voip_channel::UpdateApnsVoipChannelError::Unhandled(inner) => Error::Unhandled(inner),
3426 }
3427 }
3428}
3429impl<R>
3430 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_apns_voip_sandbox_channel::UpdateApnsVoipSandboxChannelError, R>>
3431 for Error
3432where
3433 R: Send + Sync + std::fmt::Debug + 'static,
3434{
3435 fn from(
3436 err: ::aws_smithy_runtime_api::client::result::SdkError<
3437 crate::operation::update_apns_voip_sandbox_channel::UpdateApnsVoipSandboxChannelError,
3438 R,
3439 >,
3440 ) -> Self {
3441 match err {
3442 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3443 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3444 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3445 source: err.into(),
3446 }),
3447 }
3448 }
3449}
3450impl From<crate::operation::update_apns_voip_sandbox_channel::UpdateApnsVoipSandboxChannelError> for Error {
3451 fn from(err: crate::operation::update_apns_voip_sandbox_channel::UpdateApnsVoipSandboxChannelError) -> Self {
3452 match err {
3453 crate::operation::update_apns_voip_sandbox_channel::UpdateApnsVoipSandboxChannelError::BadRequestException(inner) => {
3454 Error::BadRequestException(inner)
3455 }
3456 crate::operation::update_apns_voip_sandbox_channel::UpdateApnsVoipSandboxChannelError::ForbiddenException(inner) => {
3457 Error::ForbiddenException(inner)
3458 }
3459 crate::operation::update_apns_voip_sandbox_channel::UpdateApnsVoipSandboxChannelError::InternalServerErrorException(inner) => {
3460 Error::InternalServerErrorException(inner)
3461 }
3462 crate::operation::update_apns_voip_sandbox_channel::UpdateApnsVoipSandboxChannelError::MethodNotAllowedException(inner) => {
3463 Error::MethodNotAllowedException(inner)
3464 }
3465 crate::operation::update_apns_voip_sandbox_channel::UpdateApnsVoipSandboxChannelError::NotFoundException(inner) => {
3466 Error::NotFoundException(inner)
3467 }
3468 crate::operation::update_apns_voip_sandbox_channel::UpdateApnsVoipSandboxChannelError::PayloadTooLargeException(inner) => {
3469 Error::PayloadTooLargeException(inner)
3470 }
3471 crate::operation::update_apns_voip_sandbox_channel::UpdateApnsVoipSandboxChannelError::TooManyRequestsException(inner) => {
3472 Error::TooManyRequestsException(inner)
3473 }
3474 crate::operation::update_apns_voip_sandbox_channel::UpdateApnsVoipSandboxChannelError::Unhandled(inner) => Error::Unhandled(inner),
3475 }
3476 }
3477}
3478impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application_settings::UpdateApplicationSettingsError, R>>
3479 for Error
3480where
3481 R: Send + Sync + std::fmt::Debug + 'static,
3482{
3483 fn from(
3484 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application_settings::UpdateApplicationSettingsError, R>,
3485 ) -> Self {
3486 match err {
3487 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3488 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3489 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3490 source: err.into(),
3491 }),
3492 }
3493 }
3494}
3495impl From<crate::operation::update_application_settings::UpdateApplicationSettingsError> for Error {
3496 fn from(err: crate::operation::update_application_settings::UpdateApplicationSettingsError) -> Self {
3497 match err {
3498 crate::operation::update_application_settings::UpdateApplicationSettingsError::BadRequestException(inner) => {
3499 Error::BadRequestException(inner)
3500 }
3501 crate::operation::update_application_settings::UpdateApplicationSettingsError::ForbiddenException(inner) => {
3502 Error::ForbiddenException(inner)
3503 }
3504 crate::operation::update_application_settings::UpdateApplicationSettingsError::InternalServerErrorException(inner) => {
3505 Error::InternalServerErrorException(inner)
3506 }
3507 crate::operation::update_application_settings::UpdateApplicationSettingsError::MethodNotAllowedException(inner) => {
3508 Error::MethodNotAllowedException(inner)
3509 }
3510 crate::operation::update_application_settings::UpdateApplicationSettingsError::NotFoundException(inner) => {
3511 Error::NotFoundException(inner)
3512 }
3513 crate::operation::update_application_settings::UpdateApplicationSettingsError::PayloadTooLargeException(inner) => {
3514 Error::PayloadTooLargeException(inner)
3515 }
3516 crate::operation::update_application_settings::UpdateApplicationSettingsError::TooManyRequestsException(inner) => {
3517 Error::TooManyRequestsException(inner)
3518 }
3519 crate::operation::update_application_settings::UpdateApplicationSettingsError::Unhandled(inner) => Error::Unhandled(inner),
3520 }
3521 }
3522}
3523impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_baidu_channel::UpdateBaiduChannelError, R>> for Error
3524where
3525 R: Send + Sync + std::fmt::Debug + 'static,
3526{
3527 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_baidu_channel::UpdateBaiduChannelError, R>) -> Self {
3528 match err {
3529 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3530 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3531 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3532 source: err.into(),
3533 }),
3534 }
3535 }
3536}
3537impl From<crate::operation::update_baidu_channel::UpdateBaiduChannelError> for Error {
3538 fn from(err: crate::operation::update_baidu_channel::UpdateBaiduChannelError) -> Self {
3539 match err {
3540 crate::operation::update_baidu_channel::UpdateBaiduChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
3541 crate::operation::update_baidu_channel::UpdateBaiduChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3542 crate::operation::update_baidu_channel::UpdateBaiduChannelError::InternalServerErrorException(inner) => {
3543 Error::InternalServerErrorException(inner)
3544 }
3545 crate::operation::update_baidu_channel::UpdateBaiduChannelError::MethodNotAllowedException(inner) => {
3546 Error::MethodNotAllowedException(inner)
3547 }
3548 crate::operation::update_baidu_channel::UpdateBaiduChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
3549 crate::operation::update_baidu_channel::UpdateBaiduChannelError::PayloadTooLargeException(inner) => {
3550 Error::PayloadTooLargeException(inner)
3551 }
3552 crate::operation::update_baidu_channel::UpdateBaiduChannelError::TooManyRequestsException(inner) => {
3553 Error::TooManyRequestsException(inner)
3554 }
3555 crate::operation::update_baidu_channel::UpdateBaiduChannelError::Unhandled(inner) => Error::Unhandled(inner),
3556 }
3557 }
3558}
3559impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_campaign::UpdateCampaignError, R>> for Error
3560where
3561 R: Send + Sync + std::fmt::Debug + 'static,
3562{
3563 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_campaign::UpdateCampaignError, R>) -> Self {
3564 match err {
3565 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3566 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3567 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3568 source: err.into(),
3569 }),
3570 }
3571 }
3572}
3573impl From<crate::operation::update_campaign::UpdateCampaignError> for Error {
3574 fn from(err: crate::operation::update_campaign::UpdateCampaignError) -> Self {
3575 match err {
3576 crate::operation::update_campaign::UpdateCampaignError::BadRequestException(inner) => Error::BadRequestException(inner),
3577 crate::operation::update_campaign::UpdateCampaignError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3578 crate::operation::update_campaign::UpdateCampaignError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3579 crate::operation::update_campaign::UpdateCampaignError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
3580 crate::operation::update_campaign::UpdateCampaignError::NotFoundException(inner) => Error::NotFoundException(inner),
3581 crate::operation::update_campaign::UpdateCampaignError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
3582 crate::operation::update_campaign::UpdateCampaignError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3583 crate::operation::update_campaign::UpdateCampaignError::Unhandled(inner) => Error::Unhandled(inner),
3584 }
3585 }
3586}
3587impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_email_channel::UpdateEmailChannelError, R>> for Error
3588where
3589 R: Send + Sync + std::fmt::Debug + 'static,
3590{
3591 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_email_channel::UpdateEmailChannelError, R>) -> Self {
3592 match err {
3593 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3594 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3595 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3596 source: err.into(),
3597 }),
3598 }
3599 }
3600}
3601impl From<crate::operation::update_email_channel::UpdateEmailChannelError> for Error {
3602 fn from(err: crate::operation::update_email_channel::UpdateEmailChannelError) -> Self {
3603 match err {
3604 crate::operation::update_email_channel::UpdateEmailChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
3605 crate::operation::update_email_channel::UpdateEmailChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3606 crate::operation::update_email_channel::UpdateEmailChannelError::InternalServerErrorException(inner) => {
3607 Error::InternalServerErrorException(inner)
3608 }
3609 crate::operation::update_email_channel::UpdateEmailChannelError::MethodNotAllowedException(inner) => {
3610 Error::MethodNotAllowedException(inner)
3611 }
3612 crate::operation::update_email_channel::UpdateEmailChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
3613 crate::operation::update_email_channel::UpdateEmailChannelError::PayloadTooLargeException(inner) => {
3614 Error::PayloadTooLargeException(inner)
3615 }
3616 crate::operation::update_email_channel::UpdateEmailChannelError::TooManyRequestsException(inner) => {
3617 Error::TooManyRequestsException(inner)
3618 }
3619 crate::operation::update_email_channel::UpdateEmailChannelError::Unhandled(inner) => Error::Unhandled(inner),
3620 }
3621 }
3622}
3623impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_email_template::UpdateEmailTemplateError, R>> for Error
3624where
3625 R: Send + Sync + std::fmt::Debug + 'static,
3626{
3627 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_email_template::UpdateEmailTemplateError, R>) -> Self {
3628 match err {
3629 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3630 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3631 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3632 source: err.into(),
3633 }),
3634 }
3635 }
3636}
3637impl From<crate::operation::update_email_template::UpdateEmailTemplateError> for Error {
3638 fn from(err: crate::operation::update_email_template::UpdateEmailTemplateError) -> Self {
3639 match err {
3640 crate::operation::update_email_template::UpdateEmailTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
3641 crate::operation::update_email_template::UpdateEmailTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3642 crate::operation::update_email_template::UpdateEmailTemplateError::InternalServerErrorException(inner) => {
3643 Error::InternalServerErrorException(inner)
3644 }
3645 crate::operation::update_email_template::UpdateEmailTemplateError::MethodNotAllowedException(inner) => {
3646 Error::MethodNotAllowedException(inner)
3647 }
3648 crate::operation::update_email_template::UpdateEmailTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
3649 crate::operation::update_email_template::UpdateEmailTemplateError::PayloadTooLargeException(inner) => {
3650 Error::PayloadTooLargeException(inner)
3651 }
3652 crate::operation::update_email_template::UpdateEmailTemplateError::TooManyRequestsException(inner) => {
3653 Error::TooManyRequestsException(inner)
3654 }
3655 crate::operation::update_email_template::UpdateEmailTemplateError::Unhandled(inner) => Error::Unhandled(inner),
3656 }
3657 }
3658}
3659impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint::UpdateEndpointError, R>> for Error
3660where
3661 R: Send + Sync + std::fmt::Debug + 'static,
3662{
3663 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint::UpdateEndpointError, R>) -> Self {
3664 match err {
3665 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3666 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3667 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3668 source: err.into(),
3669 }),
3670 }
3671 }
3672}
3673impl From<crate::operation::update_endpoint::UpdateEndpointError> for Error {
3674 fn from(err: crate::operation::update_endpoint::UpdateEndpointError) -> Self {
3675 match err {
3676 crate::operation::update_endpoint::UpdateEndpointError::BadRequestException(inner) => Error::BadRequestException(inner),
3677 crate::operation::update_endpoint::UpdateEndpointError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3678 crate::operation::update_endpoint::UpdateEndpointError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3679 crate::operation::update_endpoint::UpdateEndpointError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
3680 crate::operation::update_endpoint::UpdateEndpointError::NotFoundException(inner) => Error::NotFoundException(inner),
3681 crate::operation::update_endpoint::UpdateEndpointError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
3682 crate::operation::update_endpoint::UpdateEndpointError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3683 crate::operation::update_endpoint::UpdateEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3684 }
3685 }
3686}
3687impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoints_batch::UpdateEndpointsBatchError, R>> for Error
3688where
3689 R: Send + Sync + std::fmt::Debug + 'static,
3690{
3691 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoints_batch::UpdateEndpointsBatchError, R>) -> Self {
3692 match err {
3693 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3694 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3695 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3696 source: err.into(),
3697 }),
3698 }
3699 }
3700}
3701impl From<crate::operation::update_endpoints_batch::UpdateEndpointsBatchError> for Error {
3702 fn from(err: crate::operation::update_endpoints_batch::UpdateEndpointsBatchError) -> Self {
3703 match err {
3704 crate::operation::update_endpoints_batch::UpdateEndpointsBatchError::BadRequestException(inner) => Error::BadRequestException(inner),
3705 crate::operation::update_endpoints_batch::UpdateEndpointsBatchError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3706 crate::operation::update_endpoints_batch::UpdateEndpointsBatchError::InternalServerErrorException(inner) => {
3707 Error::InternalServerErrorException(inner)
3708 }
3709 crate::operation::update_endpoints_batch::UpdateEndpointsBatchError::MethodNotAllowedException(inner) => {
3710 Error::MethodNotAllowedException(inner)
3711 }
3712 crate::operation::update_endpoints_batch::UpdateEndpointsBatchError::NotFoundException(inner) => Error::NotFoundException(inner),
3713 crate::operation::update_endpoints_batch::UpdateEndpointsBatchError::PayloadTooLargeException(inner) => {
3714 Error::PayloadTooLargeException(inner)
3715 }
3716 crate::operation::update_endpoints_batch::UpdateEndpointsBatchError::TooManyRequestsException(inner) => {
3717 Error::TooManyRequestsException(inner)
3718 }
3719 crate::operation::update_endpoints_batch::UpdateEndpointsBatchError::Unhandled(inner) => Error::Unhandled(inner),
3720 }
3721 }
3722}
3723impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_gcm_channel::UpdateGcmChannelError, R>> for Error
3724where
3725 R: Send + Sync + std::fmt::Debug + 'static,
3726{
3727 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_gcm_channel::UpdateGcmChannelError, R>) -> Self {
3728 match err {
3729 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3730 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3731 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3732 source: err.into(),
3733 }),
3734 }
3735 }
3736}
3737impl From<crate::operation::update_gcm_channel::UpdateGcmChannelError> for Error {
3738 fn from(err: crate::operation::update_gcm_channel::UpdateGcmChannelError) -> Self {
3739 match err {
3740 crate::operation::update_gcm_channel::UpdateGcmChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
3741 crate::operation::update_gcm_channel::UpdateGcmChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3742 crate::operation::update_gcm_channel::UpdateGcmChannelError::InternalServerErrorException(inner) => {
3743 Error::InternalServerErrorException(inner)
3744 }
3745 crate::operation::update_gcm_channel::UpdateGcmChannelError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
3746 crate::operation::update_gcm_channel::UpdateGcmChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
3747 crate::operation::update_gcm_channel::UpdateGcmChannelError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
3748 crate::operation::update_gcm_channel::UpdateGcmChannelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3749 crate::operation::update_gcm_channel::UpdateGcmChannelError::Unhandled(inner) => Error::Unhandled(inner),
3750 }
3751 }
3752}
3753impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_in_app_template::UpdateInAppTemplateError, R>> for Error
3754where
3755 R: Send + Sync + std::fmt::Debug + 'static,
3756{
3757 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_in_app_template::UpdateInAppTemplateError, R>) -> Self {
3758 match err {
3759 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3760 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3761 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3762 source: err.into(),
3763 }),
3764 }
3765 }
3766}
3767impl From<crate::operation::update_in_app_template::UpdateInAppTemplateError> for Error {
3768 fn from(err: crate::operation::update_in_app_template::UpdateInAppTemplateError) -> Self {
3769 match err {
3770 crate::operation::update_in_app_template::UpdateInAppTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
3771 crate::operation::update_in_app_template::UpdateInAppTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3772 crate::operation::update_in_app_template::UpdateInAppTemplateError::InternalServerErrorException(inner) => {
3773 Error::InternalServerErrorException(inner)
3774 }
3775 crate::operation::update_in_app_template::UpdateInAppTemplateError::MethodNotAllowedException(inner) => {
3776 Error::MethodNotAllowedException(inner)
3777 }
3778 crate::operation::update_in_app_template::UpdateInAppTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
3779 crate::operation::update_in_app_template::UpdateInAppTemplateError::PayloadTooLargeException(inner) => {
3780 Error::PayloadTooLargeException(inner)
3781 }
3782 crate::operation::update_in_app_template::UpdateInAppTemplateError::TooManyRequestsException(inner) => {
3783 Error::TooManyRequestsException(inner)
3784 }
3785 crate::operation::update_in_app_template::UpdateInAppTemplateError::Unhandled(inner) => Error::Unhandled(inner),
3786 }
3787 }
3788}
3789impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_journey::UpdateJourneyError, R>> for Error
3790where
3791 R: Send + Sync + std::fmt::Debug + 'static,
3792{
3793 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_journey::UpdateJourneyError, R>) -> Self {
3794 match err {
3795 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3796 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3797 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3798 source: err.into(),
3799 }),
3800 }
3801 }
3802}
3803impl From<crate::operation::update_journey::UpdateJourneyError> for Error {
3804 fn from(err: crate::operation::update_journey::UpdateJourneyError) -> Self {
3805 match err {
3806 crate::operation::update_journey::UpdateJourneyError::BadRequestException(inner) => Error::BadRequestException(inner),
3807 crate::operation::update_journey::UpdateJourneyError::ConflictException(inner) => Error::ConflictException(inner),
3808 crate::operation::update_journey::UpdateJourneyError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3809 crate::operation::update_journey::UpdateJourneyError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3810 crate::operation::update_journey::UpdateJourneyError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
3811 crate::operation::update_journey::UpdateJourneyError::NotFoundException(inner) => Error::NotFoundException(inner),
3812 crate::operation::update_journey::UpdateJourneyError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
3813 crate::operation::update_journey::UpdateJourneyError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3814 crate::operation::update_journey::UpdateJourneyError::Unhandled(inner) => Error::Unhandled(inner),
3815 }
3816 }
3817}
3818impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_journey_state::UpdateJourneyStateError, R>> for Error
3819where
3820 R: Send + Sync + std::fmt::Debug + 'static,
3821{
3822 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_journey_state::UpdateJourneyStateError, R>) -> Self {
3823 match err {
3824 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3825 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3826 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3827 source: err.into(),
3828 }),
3829 }
3830 }
3831}
3832impl From<crate::operation::update_journey_state::UpdateJourneyStateError> for Error {
3833 fn from(err: crate::operation::update_journey_state::UpdateJourneyStateError) -> Self {
3834 match err {
3835 crate::operation::update_journey_state::UpdateJourneyStateError::BadRequestException(inner) => Error::BadRequestException(inner),
3836 crate::operation::update_journey_state::UpdateJourneyStateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3837 crate::operation::update_journey_state::UpdateJourneyStateError::InternalServerErrorException(inner) => {
3838 Error::InternalServerErrorException(inner)
3839 }
3840 crate::operation::update_journey_state::UpdateJourneyStateError::MethodNotAllowedException(inner) => {
3841 Error::MethodNotAllowedException(inner)
3842 }
3843 crate::operation::update_journey_state::UpdateJourneyStateError::NotFoundException(inner) => Error::NotFoundException(inner),
3844 crate::operation::update_journey_state::UpdateJourneyStateError::PayloadTooLargeException(inner) => {
3845 Error::PayloadTooLargeException(inner)
3846 }
3847 crate::operation::update_journey_state::UpdateJourneyStateError::TooManyRequestsException(inner) => {
3848 Error::TooManyRequestsException(inner)
3849 }
3850 crate::operation::update_journey_state::UpdateJourneyStateError::Unhandled(inner) => Error::Unhandled(inner),
3851 }
3852 }
3853}
3854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_push_template::UpdatePushTemplateError, R>> for Error
3855where
3856 R: Send + Sync + std::fmt::Debug + 'static,
3857{
3858 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_push_template::UpdatePushTemplateError, R>) -> Self {
3859 match err {
3860 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3861 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3862 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3863 source: err.into(),
3864 }),
3865 }
3866 }
3867}
3868impl From<crate::operation::update_push_template::UpdatePushTemplateError> for Error {
3869 fn from(err: crate::operation::update_push_template::UpdatePushTemplateError) -> Self {
3870 match err {
3871 crate::operation::update_push_template::UpdatePushTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
3872 crate::operation::update_push_template::UpdatePushTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3873 crate::operation::update_push_template::UpdatePushTemplateError::InternalServerErrorException(inner) => {
3874 Error::InternalServerErrorException(inner)
3875 }
3876 crate::operation::update_push_template::UpdatePushTemplateError::MethodNotAllowedException(inner) => {
3877 Error::MethodNotAllowedException(inner)
3878 }
3879 crate::operation::update_push_template::UpdatePushTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
3880 crate::operation::update_push_template::UpdatePushTemplateError::PayloadTooLargeException(inner) => {
3881 Error::PayloadTooLargeException(inner)
3882 }
3883 crate::operation::update_push_template::UpdatePushTemplateError::TooManyRequestsException(inner) => {
3884 Error::TooManyRequestsException(inner)
3885 }
3886 crate::operation::update_push_template::UpdatePushTemplateError::Unhandled(inner) => Error::Unhandled(inner),
3887 }
3888 }
3889}
3890impl<R>
3891 From<
3892 ::aws_smithy_runtime_api::client::result::SdkError<
3893 crate::operation::update_recommender_configuration::UpdateRecommenderConfigurationError,
3894 R,
3895 >,
3896 > for Error
3897where
3898 R: Send + Sync + std::fmt::Debug + 'static,
3899{
3900 fn from(
3901 err: ::aws_smithy_runtime_api::client::result::SdkError<
3902 crate::operation::update_recommender_configuration::UpdateRecommenderConfigurationError,
3903 R,
3904 >,
3905 ) -> Self {
3906 match err {
3907 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3908 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3909 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3910 source: err.into(),
3911 }),
3912 }
3913 }
3914}
3915impl From<crate::operation::update_recommender_configuration::UpdateRecommenderConfigurationError> for Error {
3916 fn from(err: crate::operation::update_recommender_configuration::UpdateRecommenderConfigurationError) -> Self {
3917 match err {
3918 crate::operation::update_recommender_configuration::UpdateRecommenderConfigurationError::BadRequestException(inner) => {
3919 Error::BadRequestException(inner)
3920 }
3921 crate::operation::update_recommender_configuration::UpdateRecommenderConfigurationError::ForbiddenException(inner) => {
3922 Error::ForbiddenException(inner)
3923 }
3924 crate::operation::update_recommender_configuration::UpdateRecommenderConfigurationError::InternalServerErrorException(inner) => {
3925 Error::InternalServerErrorException(inner)
3926 }
3927 crate::operation::update_recommender_configuration::UpdateRecommenderConfigurationError::MethodNotAllowedException(inner) => {
3928 Error::MethodNotAllowedException(inner)
3929 }
3930 crate::operation::update_recommender_configuration::UpdateRecommenderConfigurationError::NotFoundException(inner) => {
3931 Error::NotFoundException(inner)
3932 }
3933 crate::operation::update_recommender_configuration::UpdateRecommenderConfigurationError::PayloadTooLargeException(inner) => {
3934 Error::PayloadTooLargeException(inner)
3935 }
3936 crate::operation::update_recommender_configuration::UpdateRecommenderConfigurationError::TooManyRequestsException(inner) => {
3937 Error::TooManyRequestsException(inner)
3938 }
3939 crate::operation::update_recommender_configuration::UpdateRecommenderConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3940 }
3941 }
3942}
3943impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_segment::UpdateSegmentError, R>> for Error
3944where
3945 R: Send + Sync + std::fmt::Debug + 'static,
3946{
3947 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_segment::UpdateSegmentError, R>) -> Self {
3948 match err {
3949 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3950 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3951 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3952 source: err.into(),
3953 }),
3954 }
3955 }
3956}
3957impl From<crate::operation::update_segment::UpdateSegmentError> for Error {
3958 fn from(err: crate::operation::update_segment::UpdateSegmentError) -> Self {
3959 match err {
3960 crate::operation::update_segment::UpdateSegmentError::BadRequestException(inner) => Error::BadRequestException(inner),
3961 crate::operation::update_segment::UpdateSegmentError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3962 crate::operation::update_segment::UpdateSegmentError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
3963 crate::operation::update_segment::UpdateSegmentError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
3964 crate::operation::update_segment::UpdateSegmentError::NotFoundException(inner) => Error::NotFoundException(inner),
3965 crate::operation::update_segment::UpdateSegmentError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
3966 crate::operation::update_segment::UpdateSegmentError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3967 crate::operation::update_segment::UpdateSegmentError::Unhandled(inner) => Error::Unhandled(inner),
3968 }
3969 }
3970}
3971impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_sms_channel::UpdateSmsChannelError, R>> for Error
3972where
3973 R: Send + Sync + std::fmt::Debug + 'static,
3974{
3975 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_sms_channel::UpdateSmsChannelError, R>) -> Self {
3976 match err {
3977 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3978 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3979 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3980 source: err.into(),
3981 }),
3982 }
3983 }
3984}
3985impl From<crate::operation::update_sms_channel::UpdateSmsChannelError> for Error {
3986 fn from(err: crate::operation::update_sms_channel::UpdateSmsChannelError) -> Self {
3987 match err {
3988 crate::operation::update_sms_channel::UpdateSmsChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
3989 crate::operation::update_sms_channel::UpdateSmsChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
3990 crate::operation::update_sms_channel::UpdateSmsChannelError::InternalServerErrorException(inner) => {
3991 Error::InternalServerErrorException(inner)
3992 }
3993 crate::operation::update_sms_channel::UpdateSmsChannelError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
3994 crate::operation::update_sms_channel::UpdateSmsChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
3995 crate::operation::update_sms_channel::UpdateSmsChannelError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
3996 crate::operation::update_sms_channel::UpdateSmsChannelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
3997 crate::operation::update_sms_channel::UpdateSmsChannelError::Unhandled(inner) => Error::Unhandled(inner),
3998 }
3999 }
4000}
4001impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_sms_template::UpdateSmsTemplateError, R>> for Error
4002where
4003 R: Send + Sync + std::fmt::Debug + 'static,
4004{
4005 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_sms_template::UpdateSmsTemplateError, R>) -> Self {
4006 match err {
4007 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4008 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4009 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4010 source: err.into(),
4011 }),
4012 }
4013 }
4014}
4015impl From<crate::operation::update_sms_template::UpdateSmsTemplateError> for Error {
4016 fn from(err: crate::operation::update_sms_template::UpdateSmsTemplateError) -> Self {
4017 match err {
4018 crate::operation::update_sms_template::UpdateSmsTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
4019 crate::operation::update_sms_template::UpdateSmsTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
4020 crate::operation::update_sms_template::UpdateSmsTemplateError::InternalServerErrorException(inner) => {
4021 Error::InternalServerErrorException(inner)
4022 }
4023 crate::operation::update_sms_template::UpdateSmsTemplateError::MethodNotAllowedException(inner) => {
4024 Error::MethodNotAllowedException(inner)
4025 }
4026 crate::operation::update_sms_template::UpdateSmsTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
4027 crate::operation::update_sms_template::UpdateSmsTemplateError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
4028 crate::operation::update_sms_template::UpdateSmsTemplateError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
4029 crate::operation::update_sms_template::UpdateSmsTemplateError::Unhandled(inner) => Error::Unhandled(inner),
4030 }
4031 }
4032}
4033impl<R>
4034 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template_active_version::UpdateTemplateActiveVersionError, R>>
4035 for Error
4036where
4037 R: Send + Sync + std::fmt::Debug + 'static,
4038{
4039 fn from(
4040 err: ::aws_smithy_runtime_api::client::result::SdkError<
4041 crate::operation::update_template_active_version::UpdateTemplateActiveVersionError,
4042 R,
4043 >,
4044 ) -> Self {
4045 match err {
4046 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4047 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4048 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4049 source: err.into(),
4050 }),
4051 }
4052 }
4053}
4054impl From<crate::operation::update_template_active_version::UpdateTemplateActiveVersionError> for Error {
4055 fn from(err: crate::operation::update_template_active_version::UpdateTemplateActiveVersionError) -> Self {
4056 match err {
4057 crate::operation::update_template_active_version::UpdateTemplateActiveVersionError::BadRequestException(inner) => {
4058 Error::BadRequestException(inner)
4059 }
4060 crate::operation::update_template_active_version::UpdateTemplateActiveVersionError::ForbiddenException(inner) => {
4061 Error::ForbiddenException(inner)
4062 }
4063 crate::operation::update_template_active_version::UpdateTemplateActiveVersionError::InternalServerErrorException(inner) => {
4064 Error::InternalServerErrorException(inner)
4065 }
4066 crate::operation::update_template_active_version::UpdateTemplateActiveVersionError::MethodNotAllowedException(inner) => {
4067 Error::MethodNotAllowedException(inner)
4068 }
4069 crate::operation::update_template_active_version::UpdateTemplateActiveVersionError::NotFoundException(inner) => {
4070 Error::NotFoundException(inner)
4071 }
4072 crate::operation::update_template_active_version::UpdateTemplateActiveVersionError::PayloadTooLargeException(inner) => {
4073 Error::PayloadTooLargeException(inner)
4074 }
4075 crate::operation::update_template_active_version::UpdateTemplateActiveVersionError::TooManyRequestsException(inner) => {
4076 Error::TooManyRequestsException(inner)
4077 }
4078 crate::operation::update_template_active_version::UpdateTemplateActiveVersionError::Unhandled(inner) => Error::Unhandled(inner),
4079 }
4080 }
4081}
4082impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_voice_channel::UpdateVoiceChannelError, R>> for Error
4083where
4084 R: Send + Sync + std::fmt::Debug + 'static,
4085{
4086 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_voice_channel::UpdateVoiceChannelError, R>) -> Self {
4087 match err {
4088 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4089 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4090 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4091 source: err.into(),
4092 }),
4093 }
4094 }
4095}
4096impl From<crate::operation::update_voice_channel::UpdateVoiceChannelError> for Error {
4097 fn from(err: crate::operation::update_voice_channel::UpdateVoiceChannelError) -> Self {
4098 match err {
4099 crate::operation::update_voice_channel::UpdateVoiceChannelError::BadRequestException(inner) => Error::BadRequestException(inner),
4100 crate::operation::update_voice_channel::UpdateVoiceChannelError::ForbiddenException(inner) => Error::ForbiddenException(inner),
4101 crate::operation::update_voice_channel::UpdateVoiceChannelError::InternalServerErrorException(inner) => {
4102 Error::InternalServerErrorException(inner)
4103 }
4104 crate::operation::update_voice_channel::UpdateVoiceChannelError::MethodNotAllowedException(inner) => {
4105 Error::MethodNotAllowedException(inner)
4106 }
4107 crate::operation::update_voice_channel::UpdateVoiceChannelError::NotFoundException(inner) => Error::NotFoundException(inner),
4108 crate::operation::update_voice_channel::UpdateVoiceChannelError::PayloadTooLargeException(inner) => {
4109 Error::PayloadTooLargeException(inner)
4110 }
4111 crate::operation::update_voice_channel::UpdateVoiceChannelError::TooManyRequestsException(inner) => {
4112 Error::TooManyRequestsException(inner)
4113 }
4114 crate::operation::update_voice_channel::UpdateVoiceChannelError::Unhandled(inner) => Error::Unhandled(inner),
4115 }
4116 }
4117}
4118impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_voice_template::UpdateVoiceTemplateError, R>> for Error
4119where
4120 R: Send + Sync + std::fmt::Debug + 'static,
4121{
4122 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_voice_template::UpdateVoiceTemplateError, R>) -> Self {
4123 match err {
4124 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4125 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4126 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4127 source: err.into(),
4128 }),
4129 }
4130 }
4131}
4132impl From<crate::operation::update_voice_template::UpdateVoiceTemplateError> for Error {
4133 fn from(err: crate::operation::update_voice_template::UpdateVoiceTemplateError) -> Self {
4134 match err {
4135 crate::operation::update_voice_template::UpdateVoiceTemplateError::BadRequestException(inner) => Error::BadRequestException(inner),
4136 crate::operation::update_voice_template::UpdateVoiceTemplateError::ForbiddenException(inner) => Error::ForbiddenException(inner),
4137 crate::operation::update_voice_template::UpdateVoiceTemplateError::InternalServerErrorException(inner) => {
4138 Error::InternalServerErrorException(inner)
4139 }
4140 crate::operation::update_voice_template::UpdateVoiceTemplateError::MethodNotAllowedException(inner) => {
4141 Error::MethodNotAllowedException(inner)
4142 }
4143 crate::operation::update_voice_template::UpdateVoiceTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
4144 crate::operation::update_voice_template::UpdateVoiceTemplateError::PayloadTooLargeException(inner) => {
4145 Error::PayloadTooLargeException(inner)
4146 }
4147 crate::operation::update_voice_template::UpdateVoiceTemplateError::TooManyRequestsException(inner) => {
4148 Error::TooManyRequestsException(inner)
4149 }
4150 crate::operation::update_voice_template::UpdateVoiceTemplateError::Unhandled(inner) => Error::Unhandled(inner),
4151 }
4152 }
4153}
4154impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_otp_message::VerifyOTPMessageError, R>> for Error
4155where
4156 R: Send + Sync + std::fmt::Debug + 'static,
4157{
4158 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_otp_message::VerifyOTPMessageError, R>) -> Self {
4159 match err {
4160 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4161 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4162 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4163 source: err.into(),
4164 }),
4165 }
4166 }
4167}
4168impl From<crate::operation::verify_otp_message::VerifyOTPMessageError> for Error {
4169 fn from(err: crate::operation::verify_otp_message::VerifyOTPMessageError) -> Self {
4170 match err {
4171 crate::operation::verify_otp_message::VerifyOTPMessageError::BadRequestException(inner) => Error::BadRequestException(inner),
4172 crate::operation::verify_otp_message::VerifyOTPMessageError::ForbiddenException(inner) => Error::ForbiddenException(inner),
4173 crate::operation::verify_otp_message::VerifyOTPMessageError::InternalServerErrorException(inner) => {
4174 Error::InternalServerErrorException(inner)
4175 }
4176 crate::operation::verify_otp_message::VerifyOTPMessageError::MethodNotAllowedException(inner) => Error::MethodNotAllowedException(inner),
4177 crate::operation::verify_otp_message::VerifyOTPMessageError::NotFoundException(inner) => Error::NotFoundException(inner),
4178 crate::operation::verify_otp_message::VerifyOTPMessageError::PayloadTooLargeException(inner) => Error::PayloadTooLargeException(inner),
4179 crate::operation::verify_otp_message::VerifyOTPMessageError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
4180 crate::operation::verify_otp_message::VerifyOTPMessageError::Unhandled(inner) => Error::Unhandled(inner),
4181 }
4182 }
4183}
4184impl ::std::error::Error for Error {
4185 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
4186 match self {
4187 Error::BadRequestException(inner) => inner.source(),
4188 Error::ConflictException(inner) => inner.source(),
4189 Error::ForbiddenException(inner) => inner.source(),
4190 Error::InternalServerErrorException(inner) => inner.source(),
4191 Error::MethodNotAllowedException(inner) => inner.source(),
4192 Error::NotFoundException(inner) => inner.source(),
4193 Error::PayloadTooLargeException(inner) => inner.source(),
4194 Error::TooManyRequestsException(inner) => inner.source(),
4195 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
4196 }
4197 }
4198}
4199impl ::aws_types::request_id::RequestId for Error {
4200 fn request_id(&self) -> Option<&str> {
4201 match self {
4202 Self::BadRequestException(e) => e.request_id(),
4203 Self::ConflictException(e) => e.request_id(),
4204 Self::ForbiddenException(e) => e.request_id(),
4205 Self::InternalServerErrorException(e) => e.request_id(),
4206 Self::MethodNotAllowedException(e) => e.request_id(),
4207 Self::NotFoundException(e) => e.request_id(),
4208 Self::PayloadTooLargeException(e) => e.request_id(),
4209 Self::TooManyRequestsException(e) => e.request_id(),
4210 Self::Unhandled(e) => e.meta.request_id(),
4211 }
4212 }
4213}