1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ConflictException(crate::types::error::ConflictException),
10 InternalServerException(crate::types::error::InternalServerException),
12 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16 ThrottlingException(crate::types::error::ThrottlingException),
18 ValidationException(crate::types::error::ValidationException),
20 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22 variable wildcard pattern and check `.code()`:
23 \
24 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25 \
26 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27 Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31 match self {
32 Error::AccessDeniedException(inner) => inner.fmt(f),
33 Error::ConflictException(inner) => inner.fmt(f),
34 Error::InternalServerException(inner) => inner.fmt(f),
35 Error::ResourceNotFoundException(inner) => inner.fmt(f),
36 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37 Error::ThrottlingException(inner) => inner.fmt(f),
38 Error::ValidationException(inner) => inner.fmt(f),
39 Error::Unhandled(_) => {
40 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41 write!(f, "unhandled error ({code})")
42 } else {
43 f.write_str("unhandled error")
44 }
45 }
46 }
47 }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52 source: value.into(),
53 meta: ::std::default::Default::default(),
54 })
55 }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59 match self {
60 Self::AccessDeniedException(inner) => inner.meta(),
61 Self::ConflictException(inner) => inner.meta(),
62 Self::InternalServerException(inner) => inner.meta(),
63 Self::ResourceNotFoundException(inner) => inner.meta(),
64 Self::ServiceQuotaExceededException(inner) => inner.meta(),
65 Self::ThrottlingException(inner) => inner.meta(),
66 Self::ValidationException(inner) => inner.meta(),
67 Self::Unhandled(inner) => &inner.meta,
68 }
69 }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_lenses::AssociateLensesError, R>> for Error
72where
73 R: Send + Sync + std::fmt::Debug + 'static,
74{
75 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_lenses::AssociateLensesError, R>) -> Self {
76 match err {
77 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
78 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
79 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
80 source: err.into(),
81 }),
82 }
83 }
84}
85impl From<crate::operation::associate_lenses::AssociateLensesError> for Error {
86 fn from(err: crate::operation::associate_lenses::AssociateLensesError) -> Self {
87 match err {
88 crate::operation::associate_lenses::AssociateLensesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89 crate::operation::associate_lenses::AssociateLensesError::ConflictException(inner) => Error::ConflictException(inner),
90 crate::operation::associate_lenses::AssociateLensesError::InternalServerException(inner) => Error::InternalServerException(inner),
91 crate::operation::associate_lenses::AssociateLensesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
92 crate::operation::associate_lenses::AssociateLensesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
93 crate::operation::associate_lenses::AssociateLensesError::ValidationException(inner) => Error::ValidationException(inner),
94 crate::operation::associate_lenses::AssociateLensesError::Unhandled(inner) => Error::Unhandled(inner),
95 }
96 }
97}
98impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_profiles::AssociateProfilesError, R>> for Error
99where
100 R: Send + Sync + std::fmt::Debug + 'static,
101{
102 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_profiles::AssociateProfilesError, R>) -> Self {
103 match err {
104 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
105 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
106 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
107 source: err.into(),
108 }),
109 }
110 }
111}
112impl From<crate::operation::associate_profiles::AssociateProfilesError> for Error {
113 fn from(err: crate::operation::associate_profiles::AssociateProfilesError) -> Self {
114 match err {
115 crate::operation::associate_profiles::AssociateProfilesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
116 crate::operation::associate_profiles::AssociateProfilesError::ConflictException(inner) => Error::ConflictException(inner),
117 crate::operation::associate_profiles::AssociateProfilesError::InternalServerException(inner) => Error::InternalServerException(inner),
118 crate::operation::associate_profiles::AssociateProfilesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
119 crate::operation::associate_profiles::AssociateProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
120 crate::operation::associate_profiles::AssociateProfilesError::ValidationException(inner) => Error::ValidationException(inner),
121 crate::operation::associate_profiles::AssociateProfilesError::Unhandled(inner) => Error::Unhandled(inner),
122 }
123 }
124}
125impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_lens_share::CreateLensShareError, R>> for Error
126where
127 R: Send + Sync + std::fmt::Debug + 'static,
128{
129 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_lens_share::CreateLensShareError, R>) -> Self {
130 match err {
131 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
132 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
133 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
134 source: err.into(),
135 }),
136 }
137 }
138}
139impl From<crate::operation::create_lens_share::CreateLensShareError> for Error {
140 fn from(err: crate::operation::create_lens_share::CreateLensShareError) -> Self {
141 match err {
142 crate::operation::create_lens_share::CreateLensShareError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
143 crate::operation::create_lens_share::CreateLensShareError::ConflictException(inner) => Error::ConflictException(inner),
144 crate::operation::create_lens_share::CreateLensShareError::InternalServerException(inner) => Error::InternalServerException(inner),
145 crate::operation::create_lens_share::CreateLensShareError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
146 crate::operation::create_lens_share::CreateLensShareError::ServiceQuotaExceededException(inner) => {
147 Error::ServiceQuotaExceededException(inner)
148 }
149 crate::operation::create_lens_share::CreateLensShareError::ThrottlingException(inner) => Error::ThrottlingException(inner),
150 crate::operation::create_lens_share::CreateLensShareError::ValidationException(inner) => Error::ValidationException(inner),
151 crate::operation::create_lens_share::CreateLensShareError::Unhandled(inner) => Error::Unhandled(inner),
152 }
153 }
154}
155impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_lens_version::CreateLensVersionError, R>> for Error
156where
157 R: Send + Sync + std::fmt::Debug + 'static,
158{
159 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_lens_version::CreateLensVersionError, R>) -> Self {
160 match err {
161 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
162 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
163 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
164 source: err.into(),
165 }),
166 }
167 }
168}
169impl From<crate::operation::create_lens_version::CreateLensVersionError> for Error {
170 fn from(err: crate::operation::create_lens_version::CreateLensVersionError) -> Self {
171 match err {
172 crate::operation::create_lens_version::CreateLensVersionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
173 crate::operation::create_lens_version::CreateLensVersionError::ConflictException(inner) => Error::ConflictException(inner),
174 crate::operation::create_lens_version::CreateLensVersionError::InternalServerException(inner) => Error::InternalServerException(inner),
175 crate::operation::create_lens_version::CreateLensVersionError::ResourceNotFoundException(inner) => {
176 Error::ResourceNotFoundException(inner)
177 }
178 crate::operation::create_lens_version::CreateLensVersionError::ServiceQuotaExceededException(inner) => {
179 Error::ServiceQuotaExceededException(inner)
180 }
181 crate::operation::create_lens_version::CreateLensVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
182 crate::operation::create_lens_version::CreateLensVersionError::ValidationException(inner) => Error::ValidationException(inner),
183 crate::operation::create_lens_version::CreateLensVersionError::Unhandled(inner) => Error::Unhandled(inner),
184 }
185 }
186}
187impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_milestone::CreateMilestoneError, R>> for Error
188where
189 R: Send + Sync + std::fmt::Debug + 'static,
190{
191 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_milestone::CreateMilestoneError, R>) -> Self {
192 match err {
193 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
194 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
195 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
196 source: err.into(),
197 }),
198 }
199 }
200}
201impl From<crate::operation::create_milestone::CreateMilestoneError> for Error {
202 fn from(err: crate::operation::create_milestone::CreateMilestoneError) -> Self {
203 match err {
204 crate::operation::create_milestone::CreateMilestoneError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
205 crate::operation::create_milestone::CreateMilestoneError::ConflictException(inner) => Error::ConflictException(inner),
206 crate::operation::create_milestone::CreateMilestoneError::InternalServerException(inner) => Error::InternalServerException(inner),
207 crate::operation::create_milestone::CreateMilestoneError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
208 crate::operation::create_milestone::CreateMilestoneError::ServiceQuotaExceededException(inner) => {
209 Error::ServiceQuotaExceededException(inner)
210 }
211 crate::operation::create_milestone::CreateMilestoneError::ThrottlingException(inner) => Error::ThrottlingException(inner),
212 crate::operation::create_milestone::CreateMilestoneError::ValidationException(inner) => Error::ValidationException(inner),
213 crate::operation::create_milestone::CreateMilestoneError::Unhandled(inner) => Error::Unhandled(inner),
214 }
215 }
216}
217impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_profile::CreateProfileError, R>> for Error
218where
219 R: Send + Sync + std::fmt::Debug + 'static,
220{
221 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_profile::CreateProfileError, R>) -> Self {
222 match err {
223 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
224 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
225 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
226 source: err.into(),
227 }),
228 }
229 }
230}
231impl From<crate::operation::create_profile::CreateProfileError> for Error {
232 fn from(err: crate::operation::create_profile::CreateProfileError) -> Self {
233 match err {
234 crate::operation::create_profile::CreateProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
235 crate::operation::create_profile::CreateProfileError::ConflictException(inner) => Error::ConflictException(inner),
236 crate::operation::create_profile::CreateProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
237 crate::operation::create_profile::CreateProfileError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
238 crate::operation::create_profile::CreateProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
239 crate::operation::create_profile::CreateProfileError::ValidationException(inner) => Error::ValidationException(inner),
240 crate::operation::create_profile::CreateProfileError::Unhandled(inner) => Error::Unhandled(inner),
241 }
242 }
243}
244impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_profile_share::CreateProfileShareError, R>> for Error
245where
246 R: Send + Sync + std::fmt::Debug + 'static,
247{
248 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_profile_share::CreateProfileShareError, R>) -> Self {
249 match err {
250 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
251 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
252 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
253 source: err.into(),
254 }),
255 }
256 }
257}
258impl From<crate::operation::create_profile_share::CreateProfileShareError> for Error {
259 fn from(err: crate::operation::create_profile_share::CreateProfileShareError) -> Self {
260 match err {
261 crate::operation::create_profile_share::CreateProfileShareError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
262 crate::operation::create_profile_share::CreateProfileShareError::ConflictException(inner) => Error::ConflictException(inner),
263 crate::operation::create_profile_share::CreateProfileShareError::InternalServerException(inner) => Error::InternalServerException(inner),
264 crate::operation::create_profile_share::CreateProfileShareError::ResourceNotFoundException(inner) => {
265 Error::ResourceNotFoundException(inner)
266 }
267 crate::operation::create_profile_share::CreateProfileShareError::ServiceQuotaExceededException(inner) => {
268 Error::ServiceQuotaExceededException(inner)
269 }
270 crate::operation::create_profile_share::CreateProfileShareError::ThrottlingException(inner) => Error::ThrottlingException(inner),
271 crate::operation::create_profile_share::CreateProfileShareError::ValidationException(inner) => Error::ValidationException(inner),
272 crate::operation::create_profile_share::CreateProfileShareError::Unhandled(inner) => Error::Unhandled(inner),
273 }
274 }
275}
276impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_review_template::CreateReviewTemplateError, R>> for Error
277where
278 R: Send + Sync + std::fmt::Debug + 'static,
279{
280 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_review_template::CreateReviewTemplateError, R>) -> Self {
281 match err {
282 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
283 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
284 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
285 source: err.into(),
286 }),
287 }
288 }
289}
290impl From<crate::operation::create_review_template::CreateReviewTemplateError> for Error {
291 fn from(err: crate::operation::create_review_template::CreateReviewTemplateError) -> Self {
292 match err {
293 crate::operation::create_review_template::CreateReviewTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
294 crate::operation::create_review_template::CreateReviewTemplateError::ConflictException(inner) => Error::ConflictException(inner),
295 crate::operation::create_review_template::CreateReviewTemplateError::InternalServerException(inner) => {
296 Error::InternalServerException(inner)
297 }
298 crate::operation::create_review_template::CreateReviewTemplateError::ResourceNotFoundException(inner) => {
299 Error::ResourceNotFoundException(inner)
300 }
301 crate::operation::create_review_template::CreateReviewTemplateError::ServiceQuotaExceededException(inner) => {
302 Error::ServiceQuotaExceededException(inner)
303 }
304 crate::operation::create_review_template::CreateReviewTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
305 crate::operation::create_review_template::CreateReviewTemplateError::ValidationException(inner) => Error::ValidationException(inner),
306 crate::operation::create_review_template::CreateReviewTemplateError::Unhandled(inner) => Error::Unhandled(inner),
307 }
308 }
309}
310impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template_share::CreateTemplateShareError, R>> for Error
311where
312 R: Send + Sync + std::fmt::Debug + 'static,
313{
314 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template_share::CreateTemplateShareError, R>) -> Self {
315 match err {
316 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
317 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
318 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
319 source: err.into(),
320 }),
321 }
322 }
323}
324impl From<crate::operation::create_template_share::CreateTemplateShareError> for Error {
325 fn from(err: crate::operation::create_template_share::CreateTemplateShareError) -> Self {
326 match err {
327 crate::operation::create_template_share::CreateTemplateShareError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
328 crate::operation::create_template_share::CreateTemplateShareError::ConflictException(inner) => Error::ConflictException(inner),
329 crate::operation::create_template_share::CreateTemplateShareError::InternalServerException(inner) => {
330 Error::InternalServerException(inner)
331 }
332 crate::operation::create_template_share::CreateTemplateShareError::ResourceNotFoundException(inner) => {
333 Error::ResourceNotFoundException(inner)
334 }
335 crate::operation::create_template_share::CreateTemplateShareError::ServiceQuotaExceededException(inner) => {
336 Error::ServiceQuotaExceededException(inner)
337 }
338 crate::operation::create_template_share::CreateTemplateShareError::ThrottlingException(inner) => Error::ThrottlingException(inner),
339 crate::operation::create_template_share::CreateTemplateShareError::ValidationException(inner) => Error::ValidationException(inner),
340 crate::operation::create_template_share::CreateTemplateShareError::Unhandled(inner) => Error::Unhandled(inner),
341 }
342 }
343}
344impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workload::CreateWorkloadError, R>> for Error
345where
346 R: Send + Sync + std::fmt::Debug + 'static,
347{
348 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workload::CreateWorkloadError, R>) -> Self {
349 match err {
350 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
351 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
352 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
353 source: err.into(),
354 }),
355 }
356 }
357}
358impl From<crate::operation::create_workload::CreateWorkloadError> for Error {
359 fn from(err: crate::operation::create_workload::CreateWorkloadError) -> Self {
360 match err {
361 crate::operation::create_workload::CreateWorkloadError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
362 crate::operation::create_workload::CreateWorkloadError::ConflictException(inner) => Error::ConflictException(inner),
363 crate::operation::create_workload::CreateWorkloadError::InternalServerException(inner) => Error::InternalServerException(inner),
364 crate::operation::create_workload::CreateWorkloadError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
365 crate::operation::create_workload::CreateWorkloadError::ServiceQuotaExceededException(inner) => {
366 Error::ServiceQuotaExceededException(inner)
367 }
368 crate::operation::create_workload::CreateWorkloadError::ThrottlingException(inner) => Error::ThrottlingException(inner),
369 crate::operation::create_workload::CreateWorkloadError::ValidationException(inner) => Error::ValidationException(inner),
370 crate::operation::create_workload::CreateWorkloadError::Unhandled(inner) => Error::Unhandled(inner),
371 }
372 }
373}
374impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workload_share::CreateWorkloadShareError, R>> for Error
375where
376 R: Send + Sync + std::fmt::Debug + 'static,
377{
378 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workload_share::CreateWorkloadShareError, R>) -> Self {
379 match err {
380 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
381 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
382 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
383 source: err.into(),
384 }),
385 }
386 }
387}
388impl From<crate::operation::create_workload_share::CreateWorkloadShareError> for Error {
389 fn from(err: crate::operation::create_workload_share::CreateWorkloadShareError) -> Self {
390 match err {
391 crate::operation::create_workload_share::CreateWorkloadShareError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
392 crate::operation::create_workload_share::CreateWorkloadShareError::ConflictException(inner) => Error::ConflictException(inner),
393 crate::operation::create_workload_share::CreateWorkloadShareError::InternalServerException(inner) => {
394 Error::InternalServerException(inner)
395 }
396 crate::operation::create_workload_share::CreateWorkloadShareError::ResourceNotFoundException(inner) => {
397 Error::ResourceNotFoundException(inner)
398 }
399 crate::operation::create_workload_share::CreateWorkloadShareError::ServiceQuotaExceededException(inner) => {
400 Error::ServiceQuotaExceededException(inner)
401 }
402 crate::operation::create_workload_share::CreateWorkloadShareError::ThrottlingException(inner) => Error::ThrottlingException(inner),
403 crate::operation::create_workload_share::CreateWorkloadShareError::ValidationException(inner) => Error::ValidationException(inner),
404 crate::operation::create_workload_share::CreateWorkloadShareError::Unhandled(inner) => Error::Unhandled(inner),
405 }
406 }
407}
408impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lens::DeleteLensError, R>> for Error
409where
410 R: Send + Sync + std::fmt::Debug + 'static,
411{
412 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lens::DeleteLensError, R>) -> Self {
413 match err {
414 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
415 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
416 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
417 source: err.into(),
418 }),
419 }
420 }
421}
422impl From<crate::operation::delete_lens::DeleteLensError> for Error {
423 fn from(err: crate::operation::delete_lens::DeleteLensError) -> Self {
424 match err {
425 crate::operation::delete_lens::DeleteLensError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
426 crate::operation::delete_lens::DeleteLensError::ConflictException(inner) => Error::ConflictException(inner),
427 crate::operation::delete_lens::DeleteLensError::InternalServerException(inner) => Error::InternalServerException(inner),
428 crate::operation::delete_lens::DeleteLensError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
429 crate::operation::delete_lens::DeleteLensError::ThrottlingException(inner) => Error::ThrottlingException(inner),
430 crate::operation::delete_lens::DeleteLensError::ValidationException(inner) => Error::ValidationException(inner),
431 crate::operation::delete_lens::DeleteLensError::Unhandled(inner) => Error::Unhandled(inner),
432 }
433 }
434}
435impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lens_share::DeleteLensShareError, R>> for Error
436where
437 R: Send + Sync + std::fmt::Debug + 'static,
438{
439 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lens_share::DeleteLensShareError, R>) -> Self {
440 match err {
441 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
442 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
443 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
444 source: err.into(),
445 }),
446 }
447 }
448}
449impl From<crate::operation::delete_lens_share::DeleteLensShareError> for Error {
450 fn from(err: crate::operation::delete_lens_share::DeleteLensShareError) -> Self {
451 match err {
452 crate::operation::delete_lens_share::DeleteLensShareError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
453 crate::operation::delete_lens_share::DeleteLensShareError::ConflictException(inner) => Error::ConflictException(inner),
454 crate::operation::delete_lens_share::DeleteLensShareError::InternalServerException(inner) => Error::InternalServerException(inner),
455 crate::operation::delete_lens_share::DeleteLensShareError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
456 crate::operation::delete_lens_share::DeleteLensShareError::ThrottlingException(inner) => Error::ThrottlingException(inner),
457 crate::operation::delete_lens_share::DeleteLensShareError::ValidationException(inner) => Error::ValidationException(inner),
458 crate::operation::delete_lens_share::DeleteLensShareError::Unhandled(inner) => Error::Unhandled(inner),
459 }
460 }
461}
462impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_profile::DeleteProfileError, R>> for Error
463where
464 R: Send + Sync + std::fmt::Debug + 'static,
465{
466 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_profile::DeleteProfileError, R>) -> Self {
467 match err {
468 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
469 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
470 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
471 source: err.into(),
472 }),
473 }
474 }
475}
476impl From<crate::operation::delete_profile::DeleteProfileError> for Error {
477 fn from(err: crate::operation::delete_profile::DeleteProfileError) -> Self {
478 match err {
479 crate::operation::delete_profile::DeleteProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
480 crate::operation::delete_profile::DeleteProfileError::ConflictException(inner) => Error::ConflictException(inner),
481 crate::operation::delete_profile::DeleteProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
482 crate::operation::delete_profile::DeleteProfileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
483 crate::operation::delete_profile::DeleteProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
484 crate::operation::delete_profile::DeleteProfileError::ValidationException(inner) => Error::ValidationException(inner),
485 crate::operation::delete_profile::DeleteProfileError::Unhandled(inner) => Error::Unhandled(inner),
486 }
487 }
488}
489impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_profile_share::DeleteProfileShareError, R>> for Error
490where
491 R: Send + Sync + std::fmt::Debug + 'static,
492{
493 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_profile_share::DeleteProfileShareError, R>) -> Self {
494 match err {
495 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
496 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
497 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
498 source: err.into(),
499 }),
500 }
501 }
502}
503impl From<crate::operation::delete_profile_share::DeleteProfileShareError> for Error {
504 fn from(err: crate::operation::delete_profile_share::DeleteProfileShareError) -> Self {
505 match err {
506 crate::operation::delete_profile_share::DeleteProfileShareError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
507 crate::operation::delete_profile_share::DeleteProfileShareError::ConflictException(inner) => Error::ConflictException(inner),
508 crate::operation::delete_profile_share::DeleteProfileShareError::InternalServerException(inner) => Error::InternalServerException(inner),
509 crate::operation::delete_profile_share::DeleteProfileShareError::ResourceNotFoundException(inner) => {
510 Error::ResourceNotFoundException(inner)
511 }
512 crate::operation::delete_profile_share::DeleteProfileShareError::ThrottlingException(inner) => Error::ThrottlingException(inner),
513 crate::operation::delete_profile_share::DeleteProfileShareError::ValidationException(inner) => Error::ValidationException(inner),
514 crate::operation::delete_profile_share::DeleteProfileShareError::Unhandled(inner) => Error::Unhandled(inner),
515 }
516 }
517}
518impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_review_template::DeleteReviewTemplateError, R>> for Error
519where
520 R: Send + Sync + std::fmt::Debug + 'static,
521{
522 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_review_template::DeleteReviewTemplateError, R>) -> Self {
523 match err {
524 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
525 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
526 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
527 source: err.into(),
528 }),
529 }
530 }
531}
532impl From<crate::operation::delete_review_template::DeleteReviewTemplateError> for Error {
533 fn from(err: crate::operation::delete_review_template::DeleteReviewTemplateError) -> Self {
534 match err {
535 crate::operation::delete_review_template::DeleteReviewTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
536 crate::operation::delete_review_template::DeleteReviewTemplateError::ConflictException(inner) => Error::ConflictException(inner),
537 crate::operation::delete_review_template::DeleteReviewTemplateError::InternalServerException(inner) => {
538 Error::InternalServerException(inner)
539 }
540 crate::operation::delete_review_template::DeleteReviewTemplateError::ResourceNotFoundException(inner) => {
541 Error::ResourceNotFoundException(inner)
542 }
543 crate::operation::delete_review_template::DeleteReviewTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
544 crate::operation::delete_review_template::DeleteReviewTemplateError::ValidationException(inner) => Error::ValidationException(inner),
545 crate::operation::delete_review_template::DeleteReviewTemplateError::Unhandled(inner) => Error::Unhandled(inner),
546 }
547 }
548}
549impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template_share::DeleteTemplateShareError, R>> for Error
550where
551 R: Send + Sync + std::fmt::Debug + 'static,
552{
553 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template_share::DeleteTemplateShareError, R>) -> Self {
554 match err {
555 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
556 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
557 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
558 source: err.into(),
559 }),
560 }
561 }
562}
563impl From<crate::operation::delete_template_share::DeleteTemplateShareError> for Error {
564 fn from(err: crate::operation::delete_template_share::DeleteTemplateShareError) -> Self {
565 match err {
566 crate::operation::delete_template_share::DeleteTemplateShareError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
567 crate::operation::delete_template_share::DeleteTemplateShareError::ConflictException(inner) => Error::ConflictException(inner),
568 crate::operation::delete_template_share::DeleteTemplateShareError::InternalServerException(inner) => {
569 Error::InternalServerException(inner)
570 }
571 crate::operation::delete_template_share::DeleteTemplateShareError::ResourceNotFoundException(inner) => {
572 Error::ResourceNotFoundException(inner)
573 }
574 crate::operation::delete_template_share::DeleteTemplateShareError::ThrottlingException(inner) => Error::ThrottlingException(inner),
575 crate::operation::delete_template_share::DeleteTemplateShareError::ValidationException(inner) => Error::ValidationException(inner),
576 crate::operation::delete_template_share::DeleteTemplateShareError::Unhandled(inner) => Error::Unhandled(inner),
577 }
578 }
579}
580impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workload::DeleteWorkloadError, R>> for Error
581where
582 R: Send + Sync + std::fmt::Debug + 'static,
583{
584 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workload::DeleteWorkloadError, R>) -> Self {
585 match err {
586 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
587 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
588 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
589 source: err.into(),
590 }),
591 }
592 }
593}
594impl From<crate::operation::delete_workload::DeleteWorkloadError> for Error {
595 fn from(err: crate::operation::delete_workload::DeleteWorkloadError) -> Self {
596 match err {
597 crate::operation::delete_workload::DeleteWorkloadError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
598 crate::operation::delete_workload::DeleteWorkloadError::ConflictException(inner) => Error::ConflictException(inner),
599 crate::operation::delete_workload::DeleteWorkloadError::InternalServerException(inner) => Error::InternalServerException(inner),
600 crate::operation::delete_workload::DeleteWorkloadError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
601 crate::operation::delete_workload::DeleteWorkloadError::ThrottlingException(inner) => Error::ThrottlingException(inner),
602 crate::operation::delete_workload::DeleteWorkloadError::ValidationException(inner) => Error::ValidationException(inner),
603 crate::operation::delete_workload::DeleteWorkloadError::Unhandled(inner) => Error::Unhandled(inner),
604 }
605 }
606}
607impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workload_share::DeleteWorkloadShareError, R>> for Error
608where
609 R: Send + Sync + std::fmt::Debug + 'static,
610{
611 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workload_share::DeleteWorkloadShareError, R>) -> Self {
612 match err {
613 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
614 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
615 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
616 source: err.into(),
617 }),
618 }
619 }
620}
621impl From<crate::operation::delete_workload_share::DeleteWorkloadShareError> for Error {
622 fn from(err: crate::operation::delete_workload_share::DeleteWorkloadShareError) -> Self {
623 match err {
624 crate::operation::delete_workload_share::DeleteWorkloadShareError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
625 crate::operation::delete_workload_share::DeleteWorkloadShareError::ConflictException(inner) => Error::ConflictException(inner),
626 crate::operation::delete_workload_share::DeleteWorkloadShareError::InternalServerException(inner) => {
627 Error::InternalServerException(inner)
628 }
629 crate::operation::delete_workload_share::DeleteWorkloadShareError::ResourceNotFoundException(inner) => {
630 Error::ResourceNotFoundException(inner)
631 }
632 crate::operation::delete_workload_share::DeleteWorkloadShareError::ThrottlingException(inner) => Error::ThrottlingException(inner),
633 crate::operation::delete_workload_share::DeleteWorkloadShareError::ValidationException(inner) => Error::ValidationException(inner),
634 crate::operation::delete_workload_share::DeleteWorkloadShareError::Unhandled(inner) => Error::Unhandled(inner),
635 }
636 }
637}
638impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_lenses::DisassociateLensesError, R>> for Error
639where
640 R: Send + Sync + std::fmt::Debug + 'static,
641{
642 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_lenses::DisassociateLensesError, R>) -> Self {
643 match err {
644 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
645 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
646 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
647 source: err.into(),
648 }),
649 }
650 }
651}
652impl From<crate::operation::disassociate_lenses::DisassociateLensesError> for Error {
653 fn from(err: crate::operation::disassociate_lenses::DisassociateLensesError) -> Self {
654 match err {
655 crate::operation::disassociate_lenses::DisassociateLensesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
656 crate::operation::disassociate_lenses::DisassociateLensesError::ConflictException(inner) => Error::ConflictException(inner),
657 crate::operation::disassociate_lenses::DisassociateLensesError::InternalServerException(inner) => Error::InternalServerException(inner),
658 crate::operation::disassociate_lenses::DisassociateLensesError::ResourceNotFoundException(inner) => {
659 Error::ResourceNotFoundException(inner)
660 }
661 crate::operation::disassociate_lenses::DisassociateLensesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
662 crate::operation::disassociate_lenses::DisassociateLensesError::ValidationException(inner) => Error::ValidationException(inner),
663 crate::operation::disassociate_lenses::DisassociateLensesError::Unhandled(inner) => Error::Unhandled(inner),
664 }
665 }
666}
667impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_profiles::DisassociateProfilesError, R>> for Error
668where
669 R: Send + Sync + std::fmt::Debug + 'static,
670{
671 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_profiles::DisassociateProfilesError, R>) -> Self {
672 match err {
673 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
674 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
675 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
676 source: err.into(),
677 }),
678 }
679 }
680}
681impl From<crate::operation::disassociate_profiles::DisassociateProfilesError> for Error {
682 fn from(err: crate::operation::disassociate_profiles::DisassociateProfilesError) -> Self {
683 match err {
684 crate::operation::disassociate_profiles::DisassociateProfilesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
685 crate::operation::disassociate_profiles::DisassociateProfilesError::ConflictException(inner) => Error::ConflictException(inner),
686 crate::operation::disassociate_profiles::DisassociateProfilesError::InternalServerException(inner) => {
687 Error::InternalServerException(inner)
688 }
689 crate::operation::disassociate_profiles::DisassociateProfilesError::ResourceNotFoundException(inner) => {
690 Error::ResourceNotFoundException(inner)
691 }
692 crate::operation::disassociate_profiles::DisassociateProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
693 crate::operation::disassociate_profiles::DisassociateProfilesError::ValidationException(inner) => Error::ValidationException(inner),
694 crate::operation::disassociate_profiles::DisassociateProfilesError::Unhandled(inner) => Error::Unhandled(inner),
695 }
696 }
697}
698impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_lens::ExportLensError, R>> for Error
699where
700 R: Send + Sync + std::fmt::Debug + 'static,
701{
702 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_lens::ExportLensError, R>) -> Self {
703 match err {
704 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
705 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
706 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
707 source: err.into(),
708 }),
709 }
710 }
711}
712impl From<crate::operation::export_lens::ExportLensError> for Error {
713 fn from(err: crate::operation::export_lens::ExportLensError) -> Self {
714 match err {
715 crate::operation::export_lens::ExportLensError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
716 crate::operation::export_lens::ExportLensError::InternalServerException(inner) => Error::InternalServerException(inner),
717 crate::operation::export_lens::ExportLensError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
718 crate::operation::export_lens::ExportLensError::ThrottlingException(inner) => Error::ThrottlingException(inner),
719 crate::operation::export_lens::ExportLensError::ValidationException(inner) => Error::ValidationException(inner),
720 crate::operation::export_lens::ExportLensError::Unhandled(inner) => Error::Unhandled(inner),
721 }
722 }
723}
724impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_answer::GetAnswerError, R>> for Error
725where
726 R: Send + Sync + std::fmt::Debug + 'static,
727{
728 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_answer::GetAnswerError, R>) -> Self {
729 match err {
730 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
731 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
732 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
733 source: err.into(),
734 }),
735 }
736 }
737}
738impl From<crate::operation::get_answer::GetAnswerError> for Error {
739 fn from(err: crate::operation::get_answer::GetAnswerError) -> Self {
740 match err {
741 crate::operation::get_answer::GetAnswerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
742 crate::operation::get_answer::GetAnswerError::InternalServerException(inner) => Error::InternalServerException(inner),
743 crate::operation::get_answer::GetAnswerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
744 crate::operation::get_answer::GetAnswerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
745 crate::operation::get_answer::GetAnswerError::ValidationException(inner) => Error::ValidationException(inner),
746 crate::operation::get_answer::GetAnswerError::Unhandled(inner) => Error::Unhandled(inner),
747 }
748 }
749}
750impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_consolidated_report::GetConsolidatedReportError, R>> for Error
751where
752 R: Send + Sync + std::fmt::Debug + 'static,
753{
754 fn from(
755 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_consolidated_report::GetConsolidatedReportError, R>,
756 ) -> Self {
757 match err {
758 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
759 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
760 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
761 source: err.into(),
762 }),
763 }
764 }
765}
766impl From<crate::operation::get_consolidated_report::GetConsolidatedReportError> for Error {
767 fn from(err: crate::operation::get_consolidated_report::GetConsolidatedReportError) -> Self {
768 match err {
769 crate::operation::get_consolidated_report::GetConsolidatedReportError::AccessDeniedException(inner) => {
770 Error::AccessDeniedException(inner)
771 }
772 crate::operation::get_consolidated_report::GetConsolidatedReportError::ConflictException(inner) => Error::ConflictException(inner),
773 crate::operation::get_consolidated_report::GetConsolidatedReportError::InternalServerException(inner) => {
774 Error::InternalServerException(inner)
775 }
776 crate::operation::get_consolidated_report::GetConsolidatedReportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
777 crate::operation::get_consolidated_report::GetConsolidatedReportError::ValidationException(inner) => Error::ValidationException(inner),
778 crate::operation::get_consolidated_report::GetConsolidatedReportError::Unhandled(inner) => Error::Unhandled(inner),
779 }
780 }
781}
782impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_global_settings::GetGlobalSettingsError, R>> for Error
783where
784 R: Send + Sync + std::fmt::Debug + 'static,
785{
786 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_global_settings::GetGlobalSettingsError, R>) -> Self {
787 match err {
788 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
789 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
790 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
791 source: err.into(),
792 }),
793 }
794 }
795}
796impl From<crate::operation::get_global_settings::GetGlobalSettingsError> for Error {
797 fn from(err: crate::operation::get_global_settings::GetGlobalSettingsError) -> Self {
798 match err {
799 crate::operation::get_global_settings::GetGlobalSettingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
800 crate::operation::get_global_settings::GetGlobalSettingsError::InternalServerException(inner) => Error::InternalServerException(inner),
801 crate::operation::get_global_settings::GetGlobalSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
802 crate::operation::get_global_settings::GetGlobalSettingsError::ValidationException(inner) => Error::ValidationException(inner),
803 crate::operation::get_global_settings::GetGlobalSettingsError::Unhandled(inner) => Error::Unhandled(inner),
804 }
805 }
806}
807impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lens::GetLensError, R>> for Error
808where
809 R: Send + Sync + std::fmt::Debug + 'static,
810{
811 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lens::GetLensError, R>) -> Self {
812 match err {
813 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
814 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
815 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
816 source: err.into(),
817 }),
818 }
819 }
820}
821impl From<crate::operation::get_lens::GetLensError> for Error {
822 fn from(err: crate::operation::get_lens::GetLensError) -> Self {
823 match err {
824 crate::operation::get_lens::GetLensError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
825 crate::operation::get_lens::GetLensError::InternalServerException(inner) => Error::InternalServerException(inner),
826 crate::operation::get_lens::GetLensError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
827 crate::operation::get_lens::GetLensError::ThrottlingException(inner) => Error::ThrottlingException(inner),
828 crate::operation::get_lens::GetLensError::ValidationException(inner) => Error::ValidationException(inner),
829 crate::operation::get_lens::GetLensError::Unhandled(inner) => Error::Unhandled(inner),
830 }
831 }
832}
833impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lens_review::GetLensReviewError, R>> for Error
834where
835 R: Send + Sync + std::fmt::Debug + 'static,
836{
837 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lens_review::GetLensReviewError, R>) -> Self {
838 match err {
839 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
840 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
841 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
842 source: err.into(),
843 }),
844 }
845 }
846}
847impl From<crate::operation::get_lens_review::GetLensReviewError> for Error {
848 fn from(err: crate::operation::get_lens_review::GetLensReviewError) -> Self {
849 match err {
850 crate::operation::get_lens_review::GetLensReviewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
851 crate::operation::get_lens_review::GetLensReviewError::InternalServerException(inner) => Error::InternalServerException(inner),
852 crate::operation::get_lens_review::GetLensReviewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
853 crate::operation::get_lens_review::GetLensReviewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
854 crate::operation::get_lens_review::GetLensReviewError::ValidationException(inner) => Error::ValidationException(inner),
855 crate::operation::get_lens_review::GetLensReviewError::Unhandled(inner) => Error::Unhandled(inner),
856 }
857 }
858}
859impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lens_review_report::GetLensReviewReportError, R>> for Error
860where
861 R: Send + Sync + std::fmt::Debug + 'static,
862{
863 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lens_review_report::GetLensReviewReportError, R>) -> Self {
864 match err {
865 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
866 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
867 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
868 source: err.into(),
869 }),
870 }
871 }
872}
873impl From<crate::operation::get_lens_review_report::GetLensReviewReportError> for Error {
874 fn from(err: crate::operation::get_lens_review_report::GetLensReviewReportError) -> Self {
875 match err {
876 crate::operation::get_lens_review_report::GetLensReviewReportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
877 crate::operation::get_lens_review_report::GetLensReviewReportError::InternalServerException(inner) => {
878 Error::InternalServerException(inner)
879 }
880 crate::operation::get_lens_review_report::GetLensReviewReportError::ResourceNotFoundException(inner) => {
881 Error::ResourceNotFoundException(inner)
882 }
883 crate::operation::get_lens_review_report::GetLensReviewReportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
884 crate::operation::get_lens_review_report::GetLensReviewReportError::ValidationException(inner) => Error::ValidationException(inner),
885 crate::operation::get_lens_review_report::GetLensReviewReportError::Unhandled(inner) => Error::Unhandled(inner),
886 }
887 }
888}
889impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lens_version_difference::GetLensVersionDifferenceError, R>>
890 for Error
891where
892 R: Send + Sync + std::fmt::Debug + 'static,
893{
894 fn from(
895 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lens_version_difference::GetLensVersionDifferenceError, R>,
896 ) -> Self {
897 match err {
898 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
899 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
900 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
901 source: err.into(),
902 }),
903 }
904 }
905}
906impl From<crate::operation::get_lens_version_difference::GetLensVersionDifferenceError> for Error {
907 fn from(err: crate::operation::get_lens_version_difference::GetLensVersionDifferenceError) -> Self {
908 match err {
909 crate::operation::get_lens_version_difference::GetLensVersionDifferenceError::AccessDeniedException(inner) => {
910 Error::AccessDeniedException(inner)
911 }
912 crate::operation::get_lens_version_difference::GetLensVersionDifferenceError::InternalServerException(inner) => {
913 Error::InternalServerException(inner)
914 }
915 crate::operation::get_lens_version_difference::GetLensVersionDifferenceError::ResourceNotFoundException(inner) => {
916 Error::ResourceNotFoundException(inner)
917 }
918 crate::operation::get_lens_version_difference::GetLensVersionDifferenceError::ThrottlingException(inner) => {
919 Error::ThrottlingException(inner)
920 }
921 crate::operation::get_lens_version_difference::GetLensVersionDifferenceError::ValidationException(inner) => {
922 Error::ValidationException(inner)
923 }
924 crate::operation::get_lens_version_difference::GetLensVersionDifferenceError::Unhandled(inner) => Error::Unhandled(inner),
925 }
926 }
927}
928impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_milestone::GetMilestoneError, R>> for Error
929where
930 R: Send + Sync + std::fmt::Debug + 'static,
931{
932 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_milestone::GetMilestoneError, R>) -> Self {
933 match err {
934 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
935 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
936 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
937 source: err.into(),
938 }),
939 }
940 }
941}
942impl From<crate::operation::get_milestone::GetMilestoneError> for Error {
943 fn from(err: crate::operation::get_milestone::GetMilestoneError) -> Self {
944 match err {
945 crate::operation::get_milestone::GetMilestoneError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
946 crate::operation::get_milestone::GetMilestoneError::InternalServerException(inner) => Error::InternalServerException(inner),
947 crate::operation::get_milestone::GetMilestoneError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
948 crate::operation::get_milestone::GetMilestoneError::ThrottlingException(inner) => Error::ThrottlingException(inner),
949 crate::operation::get_milestone::GetMilestoneError::ValidationException(inner) => Error::ValidationException(inner),
950 crate::operation::get_milestone::GetMilestoneError::Unhandled(inner) => Error::Unhandled(inner),
951 }
952 }
953}
954impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_profile::GetProfileError, R>> for Error
955where
956 R: Send + Sync + std::fmt::Debug + 'static,
957{
958 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_profile::GetProfileError, R>) -> Self {
959 match err {
960 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
961 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
962 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
963 source: err.into(),
964 }),
965 }
966 }
967}
968impl From<crate::operation::get_profile::GetProfileError> for Error {
969 fn from(err: crate::operation::get_profile::GetProfileError) -> Self {
970 match err {
971 crate::operation::get_profile::GetProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
972 crate::operation::get_profile::GetProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
973 crate::operation::get_profile::GetProfileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
974 crate::operation::get_profile::GetProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
975 crate::operation::get_profile::GetProfileError::ValidationException(inner) => Error::ValidationException(inner),
976 crate::operation::get_profile::GetProfileError::Unhandled(inner) => Error::Unhandled(inner),
977 }
978 }
979}
980impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_profile_template::GetProfileTemplateError, R>> for Error
981where
982 R: Send + Sync + std::fmt::Debug + 'static,
983{
984 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_profile_template::GetProfileTemplateError, R>) -> Self {
985 match err {
986 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
987 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
988 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
989 source: err.into(),
990 }),
991 }
992 }
993}
994impl From<crate::operation::get_profile_template::GetProfileTemplateError> for Error {
995 fn from(err: crate::operation::get_profile_template::GetProfileTemplateError) -> Self {
996 match err {
997 crate::operation::get_profile_template::GetProfileTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
998 crate::operation::get_profile_template::GetProfileTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
999 crate::operation::get_profile_template::GetProfileTemplateError::ResourceNotFoundException(inner) => {
1000 Error::ResourceNotFoundException(inner)
1001 }
1002 crate::operation::get_profile_template::GetProfileTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1003 crate::operation::get_profile_template::GetProfileTemplateError::ValidationException(inner) => Error::ValidationException(inner),
1004 crate::operation::get_profile_template::GetProfileTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1005 }
1006 }
1007}
1008impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_review_template::GetReviewTemplateError, R>> for Error
1009where
1010 R: Send + Sync + std::fmt::Debug + 'static,
1011{
1012 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_review_template::GetReviewTemplateError, R>) -> Self {
1013 match err {
1014 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1015 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1016 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1017 source: err.into(),
1018 }),
1019 }
1020 }
1021}
1022impl From<crate::operation::get_review_template::GetReviewTemplateError> for Error {
1023 fn from(err: crate::operation::get_review_template::GetReviewTemplateError) -> Self {
1024 match err {
1025 crate::operation::get_review_template::GetReviewTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1026 crate::operation::get_review_template::GetReviewTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
1027 crate::operation::get_review_template::GetReviewTemplateError::ResourceNotFoundException(inner) => {
1028 Error::ResourceNotFoundException(inner)
1029 }
1030 crate::operation::get_review_template::GetReviewTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1031 crate::operation::get_review_template::GetReviewTemplateError::ValidationException(inner) => Error::ValidationException(inner),
1032 crate::operation::get_review_template::GetReviewTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1033 }
1034 }
1035}
1036impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_review_template_answer::GetReviewTemplateAnswerError, R>>
1037 for Error
1038where
1039 R: Send + Sync + std::fmt::Debug + 'static,
1040{
1041 fn from(
1042 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_review_template_answer::GetReviewTemplateAnswerError, R>,
1043 ) -> Self {
1044 match err {
1045 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1046 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1047 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1048 source: err.into(),
1049 }),
1050 }
1051 }
1052}
1053impl From<crate::operation::get_review_template_answer::GetReviewTemplateAnswerError> for Error {
1054 fn from(err: crate::operation::get_review_template_answer::GetReviewTemplateAnswerError) -> Self {
1055 match err {
1056 crate::operation::get_review_template_answer::GetReviewTemplateAnswerError::AccessDeniedException(inner) => {
1057 Error::AccessDeniedException(inner)
1058 }
1059 crate::operation::get_review_template_answer::GetReviewTemplateAnswerError::InternalServerException(inner) => {
1060 Error::InternalServerException(inner)
1061 }
1062 crate::operation::get_review_template_answer::GetReviewTemplateAnswerError::ResourceNotFoundException(inner) => {
1063 Error::ResourceNotFoundException(inner)
1064 }
1065 crate::operation::get_review_template_answer::GetReviewTemplateAnswerError::ThrottlingException(inner) => {
1066 Error::ThrottlingException(inner)
1067 }
1068 crate::operation::get_review_template_answer::GetReviewTemplateAnswerError::ValidationException(inner) => {
1069 Error::ValidationException(inner)
1070 }
1071 crate::operation::get_review_template_answer::GetReviewTemplateAnswerError::Unhandled(inner) => Error::Unhandled(inner),
1072 }
1073 }
1074}
1075impl<R>
1076 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_review_template_lens_review::GetReviewTemplateLensReviewError, R>>
1077 for Error
1078where
1079 R: Send + Sync + std::fmt::Debug + 'static,
1080{
1081 fn from(
1082 err: ::aws_smithy_runtime_api::client::result::SdkError<
1083 crate::operation::get_review_template_lens_review::GetReviewTemplateLensReviewError,
1084 R,
1085 >,
1086 ) -> Self {
1087 match err {
1088 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1089 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1090 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1091 source: err.into(),
1092 }),
1093 }
1094 }
1095}
1096impl From<crate::operation::get_review_template_lens_review::GetReviewTemplateLensReviewError> for Error {
1097 fn from(err: crate::operation::get_review_template_lens_review::GetReviewTemplateLensReviewError) -> Self {
1098 match err {
1099 crate::operation::get_review_template_lens_review::GetReviewTemplateLensReviewError::AccessDeniedException(inner) => {
1100 Error::AccessDeniedException(inner)
1101 }
1102 crate::operation::get_review_template_lens_review::GetReviewTemplateLensReviewError::InternalServerException(inner) => {
1103 Error::InternalServerException(inner)
1104 }
1105 crate::operation::get_review_template_lens_review::GetReviewTemplateLensReviewError::ResourceNotFoundException(inner) => {
1106 Error::ResourceNotFoundException(inner)
1107 }
1108 crate::operation::get_review_template_lens_review::GetReviewTemplateLensReviewError::ThrottlingException(inner) => {
1109 Error::ThrottlingException(inner)
1110 }
1111 crate::operation::get_review_template_lens_review::GetReviewTemplateLensReviewError::ValidationException(inner) => {
1112 Error::ValidationException(inner)
1113 }
1114 crate::operation::get_review_template_lens_review::GetReviewTemplateLensReviewError::Unhandled(inner) => Error::Unhandled(inner),
1115 }
1116 }
1117}
1118impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workload::GetWorkloadError, R>> for Error
1119where
1120 R: Send + Sync + std::fmt::Debug + 'static,
1121{
1122 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workload::GetWorkloadError, R>) -> Self {
1123 match err {
1124 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1125 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1126 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1127 source: err.into(),
1128 }),
1129 }
1130 }
1131}
1132impl From<crate::operation::get_workload::GetWorkloadError> for Error {
1133 fn from(err: crate::operation::get_workload::GetWorkloadError) -> Self {
1134 match err {
1135 crate::operation::get_workload::GetWorkloadError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1136 crate::operation::get_workload::GetWorkloadError::InternalServerException(inner) => Error::InternalServerException(inner),
1137 crate::operation::get_workload::GetWorkloadError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1138 crate::operation::get_workload::GetWorkloadError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1139 crate::operation::get_workload::GetWorkloadError::ValidationException(inner) => Error::ValidationException(inner),
1140 crate::operation::get_workload::GetWorkloadError::Unhandled(inner) => Error::Unhandled(inner),
1141 }
1142 }
1143}
1144impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_lens::ImportLensError, R>> for Error
1145where
1146 R: Send + Sync + std::fmt::Debug + 'static,
1147{
1148 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_lens::ImportLensError, R>) -> Self {
1149 match err {
1150 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1151 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1152 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1153 source: err.into(),
1154 }),
1155 }
1156 }
1157}
1158impl From<crate::operation::import_lens::ImportLensError> for Error {
1159 fn from(err: crate::operation::import_lens::ImportLensError) -> Self {
1160 match err {
1161 crate::operation::import_lens::ImportLensError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1162 crate::operation::import_lens::ImportLensError::ConflictException(inner) => Error::ConflictException(inner),
1163 crate::operation::import_lens::ImportLensError::InternalServerException(inner) => Error::InternalServerException(inner),
1164 crate::operation::import_lens::ImportLensError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1165 crate::operation::import_lens::ImportLensError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1166 crate::operation::import_lens::ImportLensError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1167 crate::operation::import_lens::ImportLensError::ValidationException(inner) => Error::ValidationException(inner),
1168 crate::operation::import_lens::ImportLensError::Unhandled(inner) => Error::Unhandled(inner),
1169 }
1170 }
1171}
1172impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_answers::ListAnswersError, R>> for Error
1173where
1174 R: Send + Sync + std::fmt::Debug + 'static,
1175{
1176 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_answers::ListAnswersError, R>) -> Self {
1177 match err {
1178 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1179 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1180 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1181 source: err.into(),
1182 }),
1183 }
1184 }
1185}
1186impl From<crate::operation::list_answers::ListAnswersError> for Error {
1187 fn from(err: crate::operation::list_answers::ListAnswersError) -> Self {
1188 match err {
1189 crate::operation::list_answers::ListAnswersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1190 crate::operation::list_answers::ListAnswersError::InternalServerException(inner) => Error::InternalServerException(inner),
1191 crate::operation::list_answers::ListAnswersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1192 crate::operation::list_answers::ListAnswersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1193 crate::operation::list_answers::ListAnswersError::ValidationException(inner) => Error::ValidationException(inner),
1194 crate::operation::list_answers::ListAnswersError::Unhandled(inner) => Error::Unhandled(inner),
1195 }
1196 }
1197}
1198impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_check_details::ListCheckDetailsError, R>> for Error
1199where
1200 R: Send + Sync + std::fmt::Debug + 'static,
1201{
1202 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_check_details::ListCheckDetailsError, R>) -> Self {
1203 match err {
1204 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1205 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1206 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1207 source: err.into(),
1208 }),
1209 }
1210 }
1211}
1212impl From<crate::operation::list_check_details::ListCheckDetailsError> for Error {
1213 fn from(err: crate::operation::list_check_details::ListCheckDetailsError) -> Self {
1214 match err {
1215 crate::operation::list_check_details::ListCheckDetailsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1216 crate::operation::list_check_details::ListCheckDetailsError::InternalServerException(inner) => Error::InternalServerException(inner),
1217 crate::operation::list_check_details::ListCheckDetailsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1218 crate::operation::list_check_details::ListCheckDetailsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1219 crate::operation::list_check_details::ListCheckDetailsError::ValidationException(inner) => Error::ValidationException(inner),
1220 crate::operation::list_check_details::ListCheckDetailsError::Unhandled(inner) => Error::Unhandled(inner),
1221 }
1222 }
1223}
1224impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_check_summaries::ListCheckSummariesError, R>> for Error
1225where
1226 R: Send + Sync + std::fmt::Debug + 'static,
1227{
1228 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_check_summaries::ListCheckSummariesError, R>) -> Self {
1229 match err {
1230 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1231 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1232 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1233 source: err.into(),
1234 }),
1235 }
1236 }
1237}
1238impl From<crate::operation::list_check_summaries::ListCheckSummariesError> for Error {
1239 fn from(err: crate::operation::list_check_summaries::ListCheckSummariesError) -> Self {
1240 match err {
1241 crate::operation::list_check_summaries::ListCheckSummariesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1242 crate::operation::list_check_summaries::ListCheckSummariesError::InternalServerException(inner) => Error::InternalServerException(inner),
1243 crate::operation::list_check_summaries::ListCheckSummariesError::ResourceNotFoundException(inner) => {
1244 Error::ResourceNotFoundException(inner)
1245 }
1246 crate::operation::list_check_summaries::ListCheckSummariesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1247 crate::operation::list_check_summaries::ListCheckSummariesError::ValidationException(inner) => Error::ValidationException(inner),
1248 crate::operation::list_check_summaries::ListCheckSummariesError::Unhandled(inner) => Error::Unhandled(inner),
1249 }
1250 }
1251}
1252impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lenses::ListLensesError, R>> for Error
1253where
1254 R: Send + Sync + std::fmt::Debug + 'static,
1255{
1256 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lenses::ListLensesError, R>) -> Self {
1257 match err {
1258 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1259 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1260 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1261 source: err.into(),
1262 }),
1263 }
1264 }
1265}
1266impl From<crate::operation::list_lenses::ListLensesError> for Error {
1267 fn from(err: crate::operation::list_lenses::ListLensesError) -> Self {
1268 match err {
1269 crate::operation::list_lenses::ListLensesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1270 crate::operation::list_lenses::ListLensesError::InternalServerException(inner) => Error::InternalServerException(inner),
1271 crate::operation::list_lenses::ListLensesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1272 crate::operation::list_lenses::ListLensesError::ValidationException(inner) => Error::ValidationException(inner),
1273 crate::operation::list_lenses::ListLensesError::Unhandled(inner) => Error::Unhandled(inner),
1274 }
1275 }
1276}
1277impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lens_review_improvements::ListLensReviewImprovementsError, R>>
1278 for Error
1279where
1280 R: Send + Sync + std::fmt::Debug + 'static,
1281{
1282 fn from(
1283 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lens_review_improvements::ListLensReviewImprovementsError, R>,
1284 ) -> Self {
1285 match err {
1286 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1287 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1288 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1289 source: err.into(),
1290 }),
1291 }
1292 }
1293}
1294impl From<crate::operation::list_lens_review_improvements::ListLensReviewImprovementsError> for Error {
1295 fn from(err: crate::operation::list_lens_review_improvements::ListLensReviewImprovementsError) -> Self {
1296 match err {
1297 crate::operation::list_lens_review_improvements::ListLensReviewImprovementsError::AccessDeniedException(inner) => {
1298 Error::AccessDeniedException(inner)
1299 }
1300 crate::operation::list_lens_review_improvements::ListLensReviewImprovementsError::InternalServerException(inner) => {
1301 Error::InternalServerException(inner)
1302 }
1303 crate::operation::list_lens_review_improvements::ListLensReviewImprovementsError::ResourceNotFoundException(inner) => {
1304 Error::ResourceNotFoundException(inner)
1305 }
1306 crate::operation::list_lens_review_improvements::ListLensReviewImprovementsError::ThrottlingException(inner) => {
1307 Error::ThrottlingException(inner)
1308 }
1309 crate::operation::list_lens_review_improvements::ListLensReviewImprovementsError::ValidationException(inner) => {
1310 Error::ValidationException(inner)
1311 }
1312 crate::operation::list_lens_review_improvements::ListLensReviewImprovementsError::Unhandled(inner) => Error::Unhandled(inner),
1313 }
1314 }
1315}
1316impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lens_reviews::ListLensReviewsError, R>> for Error
1317where
1318 R: Send + Sync + std::fmt::Debug + 'static,
1319{
1320 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lens_reviews::ListLensReviewsError, R>) -> Self {
1321 match err {
1322 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1323 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1324 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1325 source: err.into(),
1326 }),
1327 }
1328 }
1329}
1330impl From<crate::operation::list_lens_reviews::ListLensReviewsError> for Error {
1331 fn from(err: crate::operation::list_lens_reviews::ListLensReviewsError) -> Self {
1332 match err {
1333 crate::operation::list_lens_reviews::ListLensReviewsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1334 crate::operation::list_lens_reviews::ListLensReviewsError::InternalServerException(inner) => Error::InternalServerException(inner),
1335 crate::operation::list_lens_reviews::ListLensReviewsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1336 crate::operation::list_lens_reviews::ListLensReviewsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1337 crate::operation::list_lens_reviews::ListLensReviewsError::ValidationException(inner) => Error::ValidationException(inner),
1338 crate::operation::list_lens_reviews::ListLensReviewsError::Unhandled(inner) => Error::Unhandled(inner),
1339 }
1340 }
1341}
1342impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lens_shares::ListLensSharesError, R>> for Error
1343where
1344 R: Send + Sync + std::fmt::Debug + 'static,
1345{
1346 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lens_shares::ListLensSharesError, R>) -> Self {
1347 match err {
1348 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1349 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1350 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1351 source: err.into(),
1352 }),
1353 }
1354 }
1355}
1356impl From<crate::operation::list_lens_shares::ListLensSharesError> for Error {
1357 fn from(err: crate::operation::list_lens_shares::ListLensSharesError) -> Self {
1358 match err {
1359 crate::operation::list_lens_shares::ListLensSharesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1360 crate::operation::list_lens_shares::ListLensSharesError::InternalServerException(inner) => Error::InternalServerException(inner),
1361 crate::operation::list_lens_shares::ListLensSharesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1362 crate::operation::list_lens_shares::ListLensSharesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1363 crate::operation::list_lens_shares::ListLensSharesError::ValidationException(inner) => Error::ValidationException(inner),
1364 crate::operation::list_lens_shares::ListLensSharesError::Unhandled(inner) => Error::Unhandled(inner),
1365 }
1366 }
1367}
1368impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_milestones::ListMilestonesError, R>> for Error
1369where
1370 R: Send + Sync + std::fmt::Debug + 'static,
1371{
1372 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_milestones::ListMilestonesError, R>) -> Self {
1373 match err {
1374 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1375 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1376 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1377 source: err.into(),
1378 }),
1379 }
1380 }
1381}
1382impl From<crate::operation::list_milestones::ListMilestonesError> for Error {
1383 fn from(err: crate::operation::list_milestones::ListMilestonesError) -> Self {
1384 match err {
1385 crate::operation::list_milestones::ListMilestonesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1386 crate::operation::list_milestones::ListMilestonesError::InternalServerException(inner) => Error::InternalServerException(inner),
1387 crate::operation::list_milestones::ListMilestonesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1388 crate::operation::list_milestones::ListMilestonesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1389 crate::operation::list_milestones::ListMilestonesError::ValidationException(inner) => Error::ValidationException(inner),
1390 crate::operation::list_milestones::ListMilestonesError::Unhandled(inner) => Error::Unhandled(inner),
1391 }
1392 }
1393}
1394impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notifications::ListNotificationsError, R>> for Error
1395where
1396 R: Send + Sync + std::fmt::Debug + 'static,
1397{
1398 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notifications::ListNotificationsError, R>) -> Self {
1399 match err {
1400 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1401 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1402 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1403 source: err.into(),
1404 }),
1405 }
1406 }
1407}
1408impl From<crate::operation::list_notifications::ListNotificationsError> for Error {
1409 fn from(err: crate::operation::list_notifications::ListNotificationsError) -> Self {
1410 match err {
1411 crate::operation::list_notifications::ListNotificationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1412 crate::operation::list_notifications::ListNotificationsError::InternalServerException(inner) => Error::InternalServerException(inner),
1413 crate::operation::list_notifications::ListNotificationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1414 crate::operation::list_notifications::ListNotificationsError::ValidationException(inner) => Error::ValidationException(inner),
1415 crate::operation::list_notifications::ListNotificationsError::Unhandled(inner) => Error::Unhandled(inner),
1416 }
1417 }
1418}
1419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_profile_notifications::ListProfileNotificationsError, R>>
1420 for Error
1421where
1422 R: Send + Sync + std::fmt::Debug + 'static,
1423{
1424 fn from(
1425 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_profile_notifications::ListProfileNotificationsError, R>,
1426 ) -> Self {
1427 match err {
1428 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1429 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1430 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1431 source: err.into(),
1432 }),
1433 }
1434 }
1435}
1436impl From<crate::operation::list_profile_notifications::ListProfileNotificationsError> for Error {
1437 fn from(err: crate::operation::list_profile_notifications::ListProfileNotificationsError) -> Self {
1438 match err {
1439 crate::operation::list_profile_notifications::ListProfileNotificationsError::AccessDeniedException(inner) => {
1440 Error::AccessDeniedException(inner)
1441 }
1442 crate::operation::list_profile_notifications::ListProfileNotificationsError::InternalServerException(inner) => {
1443 Error::InternalServerException(inner)
1444 }
1445 crate::operation::list_profile_notifications::ListProfileNotificationsError::ThrottlingException(inner) => {
1446 Error::ThrottlingException(inner)
1447 }
1448 crate::operation::list_profile_notifications::ListProfileNotificationsError::ValidationException(inner) => {
1449 Error::ValidationException(inner)
1450 }
1451 crate::operation::list_profile_notifications::ListProfileNotificationsError::Unhandled(inner) => Error::Unhandled(inner),
1452 }
1453 }
1454}
1455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_profiles::ListProfilesError, R>> for Error
1456where
1457 R: Send + Sync + std::fmt::Debug + 'static,
1458{
1459 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_profiles::ListProfilesError, R>) -> Self {
1460 match err {
1461 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1462 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1463 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1464 source: err.into(),
1465 }),
1466 }
1467 }
1468}
1469impl From<crate::operation::list_profiles::ListProfilesError> for Error {
1470 fn from(err: crate::operation::list_profiles::ListProfilesError) -> Self {
1471 match err {
1472 crate::operation::list_profiles::ListProfilesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1473 crate::operation::list_profiles::ListProfilesError::InternalServerException(inner) => Error::InternalServerException(inner),
1474 crate::operation::list_profiles::ListProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1475 crate::operation::list_profiles::ListProfilesError::ValidationException(inner) => Error::ValidationException(inner),
1476 crate::operation::list_profiles::ListProfilesError::Unhandled(inner) => Error::Unhandled(inner),
1477 }
1478 }
1479}
1480impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_profile_shares::ListProfileSharesError, R>> for Error
1481where
1482 R: Send + Sync + std::fmt::Debug + 'static,
1483{
1484 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_profile_shares::ListProfileSharesError, R>) -> Self {
1485 match err {
1486 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1487 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1488 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1489 source: err.into(),
1490 }),
1491 }
1492 }
1493}
1494impl From<crate::operation::list_profile_shares::ListProfileSharesError> for Error {
1495 fn from(err: crate::operation::list_profile_shares::ListProfileSharesError) -> Self {
1496 match err {
1497 crate::operation::list_profile_shares::ListProfileSharesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1498 crate::operation::list_profile_shares::ListProfileSharesError::InternalServerException(inner) => Error::InternalServerException(inner),
1499 crate::operation::list_profile_shares::ListProfileSharesError::ResourceNotFoundException(inner) => {
1500 Error::ResourceNotFoundException(inner)
1501 }
1502 crate::operation::list_profile_shares::ListProfileSharesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1503 crate::operation::list_profile_shares::ListProfileSharesError::ValidationException(inner) => Error::ValidationException(inner),
1504 crate::operation::list_profile_shares::ListProfileSharesError::Unhandled(inner) => Error::Unhandled(inner),
1505 }
1506 }
1507}
1508impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_review_template_answers::ListReviewTemplateAnswersError, R>>
1509 for Error
1510where
1511 R: Send + Sync + std::fmt::Debug + 'static,
1512{
1513 fn from(
1514 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_review_template_answers::ListReviewTemplateAnswersError, R>,
1515 ) -> Self {
1516 match err {
1517 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1518 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1519 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1520 source: err.into(),
1521 }),
1522 }
1523 }
1524}
1525impl From<crate::operation::list_review_template_answers::ListReviewTemplateAnswersError> for Error {
1526 fn from(err: crate::operation::list_review_template_answers::ListReviewTemplateAnswersError) -> Self {
1527 match err {
1528 crate::operation::list_review_template_answers::ListReviewTemplateAnswersError::AccessDeniedException(inner) => {
1529 Error::AccessDeniedException(inner)
1530 }
1531 crate::operation::list_review_template_answers::ListReviewTemplateAnswersError::InternalServerException(inner) => {
1532 Error::InternalServerException(inner)
1533 }
1534 crate::operation::list_review_template_answers::ListReviewTemplateAnswersError::ResourceNotFoundException(inner) => {
1535 Error::ResourceNotFoundException(inner)
1536 }
1537 crate::operation::list_review_template_answers::ListReviewTemplateAnswersError::ThrottlingException(inner) => {
1538 Error::ThrottlingException(inner)
1539 }
1540 crate::operation::list_review_template_answers::ListReviewTemplateAnswersError::ValidationException(inner) => {
1541 Error::ValidationException(inner)
1542 }
1543 crate::operation::list_review_template_answers::ListReviewTemplateAnswersError::Unhandled(inner) => Error::Unhandled(inner),
1544 }
1545 }
1546}
1547impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_review_templates::ListReviewTemplatesError, R>> for Error
1548where
1549 R: Send + Sync + std::fmt::Debug + 'static,
1550{
1551 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_review_templates::ListReviewTemplatesError, R>) -> Self {
1552 match err {
1553 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1554 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1555 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1556 source: err.into(),
1557 }),
1558 }
1559 }
1560}
1561impl From<crate::operation::list_review_templates::ListReviewTemplatesError> for Error {
1562 fn from(err: crate::operation::list_review_templates::ListReviewTemplatesError) -> Self {
1563 match err {
1564 crate::operation::list_review_templates::ListReviewTemplatesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1565 crate::operation::list_review_templates::ListReviewTemplatesError::InternalServerException(inner) => {
1566 Error::InternalServerException(inner)
1567 }
1568 crate::operation::list_review_templates::ListReviewTemplatesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1569 crate::operation::list_review_templates::ListReviewTemplatesError::ValidationException(inner) => Error::ValidationException(inner),
1570 crate::operation::list_review_templates::ListReviewTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
1571 }
1572 }
1573}
1574impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_share_invitations::ListShareInvitationsError, R>> for Error
1575where
1576 R: Send + Sync + std::fmt::Debug + 'static,
1577{
1578 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_share_invitations::ListShareInvitationsError, R>) -> Self {
1579 match err {
1580 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1581 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1582 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1583 source: err.into(),
1584 }),
1585 }
1586 }
1587}
1588impl From<crate::operation::list_share_invitations::ListShareInvitationsError> for Error {
1589 fn from(err: crate::operation::list_share_invitations::ListShareInvitationsError) -> Self {
1590 match err {
1591 crate::operation::list_share_invitations::ListShareInvitationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1592 crate::operation::list_share_invitations::ListShareInvitationsError::InternalServerException(inner) => {
1593 Error::InternalServerException(inner)
1594 }
1595 crate::operation::list_share_invitations::ListShareInvitationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1596 crate::operation::list_share_invitations::ListShareInvitationsError::ValidationException(inner) => Error::ValidationException(inner),
1597 crate::operation::list_share_invitations::ListShareInvitationsError::Unhandled(inner) => Error::Unhandled(inner),
1598 }
1599 }
1600}
1601impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, 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::list_tags_for_resource::ListTagsForResourceError, 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::list_tags_for_resource::ListTagsForResourceError> for Error {
1616 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1617 match err {
1618 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
1619 Error::InternalServerException(inner)
1620 }
1621 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1622 Error::ResourceNotFoundException(inner)
1623 }
1624 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1625 }
1626 }
1627}
1628impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_template_shares::ListTemplateSharesError, R>> for Error
1629where
1630 R: Send + Sync + std::fmt::Debug + 'static,
1631{
1632 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_template_shares::ListTemplateSharesError, R>) -> Self {
1633 match err {
1634 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1635 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1636 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1637 source: err.into(),
1638 }),
1639 }
1640 }
1641}
1642impl From<crate::operation::list_template_shares::ListTemplateSharesError> for Error {
1643 fn from(err: crate::operation::list_template_shares::ListTemplateSharesError) -> Self {
1644 match err {
1645 crate::operation::list_template_shares::ListTemplateSharesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1646 crate::operation::list_template_shares::ListTemplateSharesError::InternalServerException(inner) => Error::InternalServerException(inner),
1647 crate::operation::list_template_shares::ListTemplateSharesError::ResourceNotFoundException(inner) => {
1648 Error::ResourceNotFoundException(inner)
1649 }
1650 crate::operation::list_template_shares::ListTemplateSharesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1651 crate::operation::list_template_shares::ListTemplateSharesError::ValidationException(inner) => Error::ValidationException(inner),
1652 crate::operation::list_template_shares::ListTemplateSharesError::Unhandled(inner) => Error::Unhandled(inner),
1653 }
1654 }
1655}
1656impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workloads::ListWorkloadsError, R>> for Error
1657where
1658 R: Send + Sync + std::fmt::Debug + 'static,
1659{
1660 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workloads::ListWorkloadsError, R>) -> Self {
1661 match err {
1662 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1663 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1664 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1665 source: err.into(),
1666 }),
1667 }
1668 }
1669}
1670impl From<crate::operation::list_workloads::ListWorkloadsError> for Error {
1671 fn from(err: crate::operation::list_workloads::ListWorkloadsError) -> Self {
1672 match err {
1673 crate::operation::list_workloads::ListWorkloadsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1674 crate::operation::list_workloads::ListWorkloadsError::InternalServerException(inner) => Error::InternalServerException(inner),
1675 crate::operation::list_workloads::ListWorkloadsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1676 crate::operation::list_workloads::ListWorkloadsError::ValidationException(inner) => Error::ValidationException(inner),
1677 crate::operation::list_workloads::ListWorkloadsError::Unhandled(inner) => Error::Unhandled(inner),
1678 }
1679 }
1680}
1681impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workload_shares::ListWorkloadSharesError, R>> for Error
1682where
1683 R: Send + Sync + std::fmt::Debug + 'static,
1684{
1685 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workload_shares::ListWorkloadSharesError, R>) -> Self {
1686 match err {
1687 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1688 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1689 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1690 source: err.into(),
1691 }),
1692 }
1693 }
1694}
1695impl From<crate::operation::list_workload_shares::ListWorkloadSharesError> for Error {
1696 fn from(err: crate::operation::list_workload_shares::ListWorkloadSharesError) -> Self {
1697 match err {
1698 crate::operation::list_workload_shares::ListWorkloadSharesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1699 crate::operation::list_workload_shares::ListWorkloadSharesError::InternalServerException(inner) => Error::InternalServerException(inner),
1700 crate::operation::list_workload_shares::ListWorkloadSharesError::ResourceNotFoundException(inner) => {
1701 Error::ResourceNotFoundException(inner)
1702 }
1703 crate::operation::list_workload_shares::ListWorkloadSharesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1704 crate::operation::list_workload_shares::ListWorkloadSharesError::ValidationException(inner) => Error::ValidationException(inner),
1705 crate::operation::list_workload_shares::ListWorkloadSharesError::Unhandled(inner) => Error::Unhandled(inner),
1706 }
1707 }
1708}
1709impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1710where
1711 R: Send + Sync + std::fmt::Debug + 'static,
1712{
1713 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1714 match err {
1715 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1716 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1717 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1718 source: err.into(),
1719 }),
1720 }
1721 }
1722}
1723impl From<crate::operation::tag_resource::TagResourceError> for Error {
1724 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1725 match err {
1726 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1727 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1728 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1729 }
1730 }
1731}
1732impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1733where
1734 R: Send + Sync + std::fmt::Debug + 'static,
1735{
1736 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1737 match err {
1738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1741 source: err.into(),
1742 }),
1743 }
1744 }
1745}
1746impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1747 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1748 match err {
1749 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1750 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1751 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1752 }
1753 }
1754}
1755impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_answer::UpdateAnswerError, R>> for Error
1756where
1757 R: Send + Sync + std::fmt::Debug + 'static,
1758{
1759 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_answer::UpdateAnswerError, R>) -> Self {
1760 match err {
1761 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1762 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1763 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1764 source: err.into(),
1765 }),
1766 }
1767 }
1768}
1769impl From<crate::operation::update_answer::UpdateAnswerError> for Error {
1770 fn from(err: crate::operation::update_answer::UpdateAnswerError) -> Self {
1771 match err {
1772 crate::operation::update_answer::UpdateAnswerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1773 crate::operation::update_answer::UpdateAnswerError::ConflictException(inner) => Error::ConflictException(inner),
1774 crate::operation::update_answer::UpdateAnswerError::InternalServerException(inner) => Error::InternalServerException(inner),
1775 crate::operation::update_answer::UpdateAnswerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1776 crate::operation::update_answer::UpdateAnswerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1777 crate::operation::update_answer::UpdateAnswerError::ValidationException(inner) => Error::ValidationException(inner),
1778 crate::operation::update_answer::UpdateAnswerError::Unhandled(inner) => Error::Unhandled(inner),
1779 }
1780 }
1781}
1782impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_global_settings::UpdateGlobalSettingsError, R>> for Error
1783where
1784 R: Send + Sync + std::fmt::Debug + 'static,
1785{
1786 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_global_settings::UpdateGlobalSettingsError, R>) -> Self {
1787 match err {
1788 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1789 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1790 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1791 source: err.into(),
1792 }),
1793 }
1794 }
1795}
1796impl From<crate::operation::update_global_settings::UpdateGlobalSettingsError> for Error {
1797 fn from(err: crate::operation::update_global_settings::UpdateGlobalSettingsError) -> Self {
1798 match err {
1799 crate::operation::update_global_settings::UpdateGlobalSettingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1800 crate::operation::update_global_settings::UpdateGlobalSettingsError::ConflictException(inner) => Error::ConflictException(inner),
1801 crate::operation::update_global_settings::UpdateGlobalSettingsError::InternalServerException(inner) => {
1802 Error::InternalServerException(inner)
1803 }
1804 crate::operation::update_global_settings::UpdateGlobalSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1805 crate::operation::update_global_settings::UpdateGlobalSettingsError::ValidationException(inner) => Error::ValidationException(inner),
1806 crate::operation::update_global_settings::UpdateGlobalSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1807 }
1808 }
1809}
1810impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_integration::UpdateIntegrationError, 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::update_integration::UpdateIntegrationError, 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::update_integration::UpdateIntegrationError> for Error {
1825 fn from(err: crate::operation::update_integration::UpdateIntegrationError) -> Self {
1826 match err {
1827 crate::operation::update_integration::UpdateIntegrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1828 crate::operation::update_integration::UpdateIntegrationError::ConflictException(inner) => Error::ConflictException(inner),
1829 crate::operation::update_integration::UpdateIntegrationError::InternalServerException(inner) => Error::InternalServerException(inner),
1830 crate::operation::update_integration::UpdateIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1831 crate::operation::update_integration::UpdateIntegrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1832 crate::operation::update_integration::UpdateIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
1833 crate::operation::update_integration::UpdateIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
1834 }
1835 }
1836}
1837impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_lens_review::UpdateLensReviewError, R>> for Error
1838where
1839 R: Send + Sync + std::fmt::Debug + 'static,
1840{
1841 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_lens_review::UpdateLensReviewError, R>) -> Self {
1842 match err {
1843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1846 source: err.into(),
1847 }),
1848 }
1849 }
1850}
1851impl From<crate::operation::update_lens_review::UpdateLensReviewError> for Error {
1852 fn from(err: crate::operation::update_lens_review::UpdateLensReviewError) -> Self {
1853 match err {
1854 crate::operation::update_lens_review::UpdateLensReviewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1855 crate::operation::update_lens_review::UpdateLensReviewError::ConflictException(inner) => Error::ConflictException(inner),
1856 crate::operation::update_lens_review::UpdateLensReviewError::InternalServerException(inner) => Error::InternalServerException(inner),
1857 crate::operation::update_lens_review::UpdateLensReviewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1858 crate::operation::update_lens_review::UpdateLensReviewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1859 crate::operation::update_lens_review::UpdateLensReviewError::ValidationException(inner) => Error::ValidationException(inner),
1860 crate::operation::update_lens_review::UpdateLensReviewError::Unhandled(inner) => Error::Unhandled(inner),
1861 }
1862 }
1863}
1864impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_profile::UpdateProfileError, R>> for Error
1865where
1866 R: Send + Sync + std::fmt::Debug + 'static,
1867{
1868 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_profile::UpdateProfileError, R>) -> Self {
1869 match err {
1870 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1871 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1872 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1873 source: err.into(),
1874 }),
1875 }
1876 }
1877}
1878impl From<crate::operation::update_profile::UpdateProfileError> for Error {
1879 fn from(err: crate::operation::update_profile::UpdateProfileError) -> Self {
1880 match err {
1881 crate::operation::update_profile::UpdateProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1882 crate::operation::update_profile::UpdateProfileError::ConflictException(inner) => Error::ConflictException(inner),
1883 crate::operation::update_profile::UpdateProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
1884 crate::operation::update_profile::UpdateProfileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1885 crate::operation::update_profile::UpdateProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1886 crate::operation::update_profile::UpdateProfileError::ValidationException(inner) => Error::ValidationException(inner),
1887 crate::operation::update_profile::UpdateProfileError::Unhandled(inner) => Error::Unhandled(inner),
1888 }
1889 }
1890}
1891impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_review_template::UpdateReviewTemplateError, R>> for Error
1892where
1893 R: Send + Sync + std::fmt::Debug + 'static,
1894{
1895 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_review_template::UpdateReviewTemplateError, R>) -> Self {
1896 match err {
1897 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1898 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1899 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1900 source: err.into(),
1901 }),
1902 }
1903 }
1904}
1905impl From<crate::operation::update_review_template::UpdateReviewTemplateError> for Error {
1906 fn from(err: crate::operation::update_review_template::UpdateReviewTemplateError) -> Self {
1907 match err {
1908 crate::operation::update_review_template::UpdateReviewTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1909 crate::operation::update_review_template::UpdateReviewTemplateError::ConflictException(inner) => Error::ConflictException(inner),
1910 crate::operation::update_review_template::UpdateReviewTemplateError::InternalServerException(inner) => {
1911 Error::InternalServerException(inner)
1912 }
1913 crate::operation::update_review_template::UpdateReviewTemplateError::ResourceNotFoundException(inner) => {
1914 Error::ResourceNotFoundException(inner)
1915 }
1916 crate::operation::update_review_template::UpdateReviewTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1917 crate::operation::update_review_template::UpdateReviewTemplateError::ValidationException(inner) => Error::ValidationException(inner),
1918 crate::operation::update_review_template::UpdateReviewTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1919 }
1920 }
1921}
1922impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError, R>>
1923 for Error
1924where
1925 R: Send + Sync + std::fmt::Debug + 'static,
1926{
1927 fn from(
1928 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError, R>,
1929 ) -> Self {
1930 match err {
1931 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1932 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1933 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1934 source: err.into(),
1935 }),
1936 }
1937 }
1938}
1939impl From<crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError> for Error {
1940 fn from(err: crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError) -> Self {
1941 match err {
1942 crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError::AccessDeniedException(inner) => {
1943 Error::AccessDeniedException(inner)
1944 }
1945 crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError::ConflictException(inner) => {
1946 Error::ConflictException(inner)
1947 }
1948 crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError::InternalServerException(inner) => {
1949 Error::InternalServerException(inner)
1950 }
1951 crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError::ResourceNotFoundException(inner) => {
1952 Error::ResourceNotFoundException(inner)
1953 }
1954 crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError::ThrottlingException(inner) => {
1955 Error::ThrottlingException(inner)
1956 }
1957 crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError::ValidationException(inner) => {
1958 Error::ValidationException(inner)
1959 }
1960 crate::operation::update_review_template_answer::UpdateReviewTemplateAnswerError::Unhandled(inner) => Error::Unhandled(inner),
1961 }
1962 }
1963}
1964impl<R>
1965 From<
1966 ::aws_smithy_runtime_api::client::result::SdkError<
1967 crate::operation::update_review_template_lens_review::UpdateReviewTemplateLensReviewError,
1968 R,
1969 >,
1970 > for Error
1971where
1972 R: Send + Sync + std::fmt::Debug + 'static,
1973{
1974 fn from(
1975 err: ::aws_smithy_runtime_api::client::result::SdkError<
1976 crate::operation::update_review_template_lens_review::UpdateReviewTemplateLensReviewError,
1977 R,
1978 >,
1979 ) -> Self {
1980 match err {
1981 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1982 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1983 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1984 source: err.into(),
1985 }),
1986 }
1987 }
1988}
1989impl From<crate::operation::update_review_template_lens_review::UpdateReviewTemplateLensReviewError> for Error {
1990 fn from(err: crate::operation::update_review_template_lens_review::UpdateReviewTemplateLensReviewError) -> Self {
1991 match err {
1992 crate::operation::update_review_template_lens_review::UpdateReviewTemplateLensReviewError::AccessDeniedException(inner) => {
1993 Error::AccessDeniedException(inner)
1994 }
1995 crate::operation::update_review_template_lens_review::UpdateReviewTemplateLensReviewError::ConflictException(inner) => {
1996 Error::ConflictException(inner)
1997 }
1998 crate::operation::update_review_template_lens_review::UpdateReviewTemplateLensReviewError::InternalServerException(inner) => {
1999 Error::InternalServerException(inner)
2000 }
2001 crate::operation::update_review_template_lens_review::UpdateReviewTemplateLensReviewError::ResourceNotFoundException(inner) => {
2002 Error::ResourceNotFoundException(inner)
2003 }
2004 crate::operation::update_review_template_lens_review::UpdateReviewTemplateLensReviewError::ThrottlingException(inner) => {
2005 Error::ThrottlingException(inner)
2006 }
2007 crate::operation::update_review_template_lens_review::UpdateReviewTemplateLensReviewError::ValidationException(inner) => {
2008 Error::ValidationException(inner)
2009 }
2010 crate::operation::update_review_template_lens_review::UpdateReviewTemplateLensReviewError::Unhandled(inner) => Error::Unhandled(inner),
2011 }
2012 }
2013}
2014impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_share_invitation::UpdateShareInvitationError, R>> for Error
2015where
2016 R: Send + Sync + std::fmt::Debug + 'static,
2017{
2018 fn from(
2019 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_share_invitation::UpdateShareInvitationError, R>,
2020 ) -> Self {
2021 match err {
2022 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2023 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2024 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2025 source: err.into(),
2026 }),
2027 }
2028 }
2029}
2030impl From<crate::operation::update_share_invitation::UpdateShareInvitationError> for Error {
2031 fn from(err: crate::operation::update_share_invitation::UpdateShareInvitationError) -> Self {
2032 match err {
2033 crate::operation::update_share_invitation::UpdateShareInvitationError::AccessDeniedException(inner) => {
2034 Error::AccessDeniedException(inner)
2035 }
2036 crate::operation::update_share_invitation::UpdateShareInvitationError::ConflictException(inner) => Error::ConflictException(inner),
2037 crate::operation::update_share_invitation::UpdateShareInvitationError::InternalServerException(inner) => {
2038 Error::InternalServerException(inner)
2039 }
2040 crate::operation::update_share_invitation::UpdateShareInvitationError::ResourceNotFoundException(inner) => {
2041 Error::ResourceNotFoundException(inner)
2042 }
2043 crate::operation::update_share_invitation::UpdateShareInvitationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2044 crate::operation::update_share_invitation::UpdateShareInvitationError::ValidationException(inner) => Error::ValidationException(inner),
2045 crate::operation::update_share_invitation::UpdateShareInvitationError::Unhandled(inner) => Error::Unhandled(inner),
2046 }
2047 }
2048}
2049impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workload::UpdateWorkloadError, R>> for Error
2050where
2051 R: Send + Sync + std::fmt::Debug + 'static,
2052{
2053 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workload::UpdateWorkloadError, R>) -> Self {
2054 match err {
2055 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2056 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2057 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2058 source: err.into(),
2059 }),
2060 }
2061 }
2062}
2063impl From<crate::operation::update_workload::UpdateWorkloadError> for Error {
2064 fn from(err: crate::operation::update_workload::UpdateWorkloadError) -> Self {
2065 match err {
2066 crate::operation::update_workload::UpdateWorkloadError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2067 crate::operation::update_workload::UpdateWorkloadError::ConflictException(inner) => Error::ConflictException(inner),
2068 crate::operation::update_workload::UpdateWorkloadError::InternalServerException(inner) => Error::InternalServerException(inner),
2069 crate::operation::update_workload::UpdateWorkloadError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2070 crate::operation::update_workload::UpdateWorkloadError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2071 crate::operation::update_workload::UpdateWorkloadError::ValidationException(inner) => Error::ValidationException(inner),
2072 crate::operation::update_workload::UpdateWorkloadError::Unhandled(inner) => Error::Unhandled(inner),
2073 }
2074 }
2075}
2076impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workload_share::UpdateWorkloadShareError, R>> for Error
2077where
2078 R: Send + Sync + std::fmt::Debug + 'static,
2079{
2080 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workload_share::UpdateWorkloadShareError, R>) -> Self {
2081 match err {
2082 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2083 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2084 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2085 source: err.into(),
2086 }),
2087 }
2088 }
2089}
2090impl From<crate::operation::update_workload_share::UpdateWorkloadShareError> for Error {
2091 fn from(err: crate::operation::update_workload_share::UpdateWorkloadShareError) -> Self {
2092 match err {
2093 crate::operation::update_workload_share::UpdateWorkloadShareError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2094 crate::operation::update_workload_share::UpdateWorkloadShareError::ConflictException(inner) => Error::ConflictException(inner),
2095 crate::operation::update_workload_share::UpdateWorkloadShareError::InternalServerException(inner) => {
2096 Error::InternalServerException(inner)
2097 }
2098 crate::operation::update_workload_share::UpdateWorkloadShareError::ResourceNotFoundException(inner) => {
2099 Error::ResourceNotFoundException(inner)
2100 }
2101 crate::operation::update_workload_share::UpdateWorkloadShareError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2102 crate::operation::update_workload_share::UpdateWorkloadShareError::ValidationException(inner) => Error::ValidationException(inner),
2103 crate::operation::update_workload_share::UpdateWorkloadShareError::Unhandled(inner) => Error::Unhandled(inner),
2104 }
2105 }
2106}
2107impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::upgrade_lens_review::UpgradeLensReviewError, R>> for Error
2108where
2109 R: Send + Sync + std::fmt::Debug + 'static,
2110{
2111 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::upgrade_lens_review::UpgradeLensReviewError, R>) -> Self {
2112 match err {
2113 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2114 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2115 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2116 source: err.into(),
2117 }),
2118 }
2119 }
2120}
2121impl From<crate::operation::upgrade_lens_review::UpgradeLensReviewError> for Error {
2122 fn from(err: crate::operation::upgrade_lens_review::UpgradeLensReviewError) -> Self {
2123 match err {
2124 crate::operation::upgrade_lens_review::UpgradeLensReviewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2125 crate::operation::upgrade_lens_review::UpgradeLensReviewError::ConflictException(inner) => Error::ConflictException(inner),
2126 crate::operation::upgrade_lens_review::UpgradeLensReviewError::InternalServerException(inner) => Error::InternalServerException(inner),
2127 crate::operation::upgrade_lens_review::UpgradeLensReviewError::ResourceNotFoundException(inner) => {
2128 Error::ResourceNotFoundException(inner)
2129 }
2130 crate::operation::upgrade_lens_review::UpgradeLensReviewError::ServiceQuotaExceededException(inner) => {
2131 Error::ServiceQuotaExceededException(inner)
2132 }
2133 crate::operation::upgrade_lens_review::UpgradeLensReviewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2134 crate::operation::upgrade_lens_review::UpgradeLensReviewError::ValidationException(inner) => Error::ValidationException(inner),
2135 crate::operation::upgrade_lens_review::UpgradeLensReviewError::Unhandled(inner) => Error::Unhandled(inner),
2136 }
2137 }
2138}
2139impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::upgrade_profile_version::UpgradeProfileVersionError, R>> for Error
2140where
2141 R: Send + Sync + std::fmt::Debug + 'static,
2142{
2143 fn from(
2144 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::upgrade_profile_version::UpgradeProfileVersionError, R>,
2145 ) -> Self {
2146 match err {
2147 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2148 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2149 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2150 source: err.into(),
2151 }),
2152 }
2153 }
2154}
2155impl From<crate::operation::upgrade_profile_version::UpgradeProfileVersionError> for Error {
2156 fn from(err: crate::operation::upgrade_profile_version::UpgradeProfileVersionError) -> Self {
2157 match err {
2158 crate::operation::upgrade_profile_version::UpgradeProfileVersionError::AccessDeniedException(inner) => {
2159 Error::AccessDeniedException(inner)
2160 }
2161 crate::operation::upgrade_profile_version::UpgradeProfileVersionError::ConflictException(inner) => Error::ConflictException(inner),
2162 crate::operation::upgrade_profile_version::UpgradeProfileVersionError::InternalServerException(inner) => {
2163 Error::InternalServerException(inner)
2164 }
2165 crate::operation::upgrade_profile_version::UpgradeProfileVersionError::ResourceNotFoundException(inner) => {
2166 Error::ResourceNotFoundException(inner)
2167 }
2168 crate::operation::upgrade_profile_version::UpgradeProfileVersionError::ServiceQuotaExceededException(inner) => {
2169 Error::ServiceQuotaExceededException(inner)
2170 }
2171 crate::operation::upgrade_profile_version::UpgradeProfileVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2172 crate::operation::upgrade_profile_version::UpgradeProfileVersionError::ValidationException(inner) => Error::ValidationException(inner),
2173 crate::operation::upgrade_profile_version::UpgradeProfileVersionError::Unhandled(inner) => Error::Unhandled(inner),
2174 }
2175 }
2176}
2177impl<R>
2178 From<
2179 ::aws_smithy_runtime_api::client::result::SdkError<
2180 crate::operation::upgrade_review_template_lens_review::UpgradeReviewTemplateLensReviewError,
2181 R,
2182 >,
2183 > for Error
2184where
2185 R: Send + Sync + std::fmt::Debug + 'static,
2186{
2187 fn from(
2188 err: ::aws_smithy_runtime_api::client::result::SdkError<
2189 crate::operation::upgrade_review_template_lens_review::UpgradeReviewTemplateLensReviewError,
2190 R,
2191 >,
2192 ) -> Self {
2193 match err {
2194 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2195 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2196 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2197 source: err.into(),
2198 }),
2199 }
2200 }
2201}
2202impl From<crate::operation::upgrade_review_template_lens_review::UpgradeReviewTemplateLensReviewError> for Error {
2203 fn from(err: crate::operation::upgrade_review_template_lens_review::UpgradeReviewTemplateLensReviewError) -> Self {
2204 match err {
2205 crate::operation::upgrade_review_template_lens_review::UpgradeReviewTemplateLensReviewError::AccessDeniedException(inner) => {
2206 Error::AccessDeniedException(inner)
2207 }
2208 crate::operation::upgrade_review_template_lens_review::UpgradeReviewTemplateLensReviewError::ConflictException(inner) => {
2209 Error::ConflictException(inner)
2210 }
2211 crate::operation::upgrade_review_template_lens_review::UpgradeReviewTemplateLensReviewError::InternalServerException(inner) => {
2212 Error::InternalServerException(inner)
2213 }
2214 crate::operation::upgrade_review_template_lens_review::UpgradeReviewTemplateLensReviewError::ResourceNotFoundException(inner) => {
2215 Error::ResourceNotFoundException(inner)
2216 }
2217 crate::operation::upgrade_review_template_lens_review::UpgradeReviewTemplateLensReviewError::ThrottlingException(inner) => {
2218 Error::ThrottlingException(inner)
2219 }
2220 crate::operation::upgrade_review_template_lens_review::UpgradeReviewTemplateLensReviewError::ValidationException(inner) => {
2221 Error::ValidationException(inner)
2222 }
2223 crate::operation::upgrade_review_template_lens_review::UpgradeReviewTemplateLensReviewError::Unhandled(inner) => Error::Unhandled(inner),
2224 }
2225 }
2226}
2227impl ::std::error::Error for Error {
2228 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2229 match self {
2230 Error::AccessDeniedException(inner) => inner.source(),
2231 Error::ConflictException(inner) => inner.source(),
2232 Error::InternalServerException(inner) => inner.source(),
2233 Error::ResourceNotFoundException(inner) => inner.source(),
2234 Error::ServiceQuotaExceededException(inner) => inner.source(),
2235 Error::ThrottlingException(inner) => inner.source(),
2236 Error::ValidationException(inner) => inner.source(),
2237 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2238 }
2239 }
2240}
2241impl ::aws_types::request_id::RequestId for Error {
2242 fn request_id(&self) -> Option<&str> {
2243 match self {
2244 Self::AccessDeniedException(e) => e.request_id(),
2245 Self::ConflictException(e) => e.request_id(),
2246 Self::InternalServerException(e) => e.request_id(),
2247 Self::ResourceNotFoundException(e) => e.request_id(),
2248 Self::ServiceQuotaExceededException(e) => e.request_id(),
2249 Self::ThrottlingException(e) => e.request_id(),
2250 Self::ValidationException(e) => e.request_id(),
2251 Self::Unhandled(e) => e.meta.request_id(),
2252 }
2253 }
2254}