1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ConflictException(crate::types::error::ConflictException),
10 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
12 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
14 ThrottlingException(crate::types::error::ThrottlingException),
16 ValidationException(crate::types::error::ValidationException),
18 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
20 variable wildcard pattern and check `.code()`:
21 \
22 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
23 \
24 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
25 Unhandled(crate::error::sealed_unhandled::Unhandled),
26}
27impl ::std::fmt::Display for Error {
28 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
29 match self {
30 Error::AccessDeniedException(inner) => inner.fmt(f),
31 Error::ConflictException(inner) => inner.fmt(f),
32 Error::ResourceNotFoundException(inner) => inner.fmt(f),
33 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
34 Error::ThrottlingException(inner) => inner.fmt(f),
35 Error::ValidationException(inner) => inner.fmt(f),
36 Error::Unhandled(_) => {
37 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
38 write!(f, "unhandled error ({code})")
39 } else {
40 f.write_str("unhandled error")
41 }
42 }
43 }
44 }
45}
46impl From<::aws_smithy_types::error::operation::BuildError> for Error {
47 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
48 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
49 source: value.into(),
50 meta: ::std::default::Default::default(),
51 })
52 }
53}
54impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
55 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
56 match self {
57 Self::AccessDeniedException(inner) => inner.meta(),
58 Self::ConflictException(inner) => inner.meta(),
59 Self::ResourceNotFoundException(inner) => inner.meta(),
60 Self::ServiceQuotaExceededException(inner) => inner.meta(),
61 Self::ThrottlingException(inner) => inner.meta(),
62 Self::ValidationException(inner) => inner.meta(),
63 Self::Unhandled(inner) => &inner.meta,
64 }
65 }
66}
67impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_token::CreateAccessTokenError, R>> for Error
68where
69 R: Send + Sync + std::fmt::Debug + 'static,
70{
71 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_token::CreateAccessTokenError, R>) -> Self {
72 match err {
73 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
74 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
75 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
76 source: err.into(),
77 }),
78 }
79 }
80}
81impl From<crate::operation::create_access_token::CreateAccessTokenError> for Error {
82 fn from(err: crate::operation::create_access_token::CreateAccessTokenError) -> Self {
83 match err {
84 crate::operation::create_access_token::CreateAccessTokenError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
85 crate::operation::create_access_token::CreateAccessTokenError::ConflictException(inner) => Error::ConflictException(inner),
86 crate::operation::create_access_token::CreateAccessTokenError::ResourceNotFoundException(inner) => {
87 Error::ResourceNotFoundException(inner)
88 }
89 crate::operation::create_access_token::CreateAccessTokenError::ServiceQuotaExceededException(inner) => {
90 Error::ServiceQuotaExceededException(inner)
91 }
92 crate::operation::create_access_token::CreateAccessTokenError::ThrottlingException(inner) => Error::ThrottlingException(inner),
93 crate::operation::create_access_token::CreateAccessTokenError::ValidationException(inner) => Error::ValidationException(inner),
94 crate::operation::create_access_token::CreateAccessTokenError::Unhandled(inner) => Error::Unhandled(inner),
95 }
96 }
97}
98impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dev_environment::CreateDevEnvironmentError, 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::create_dev_environment::CreateDevEnvironmentError, 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::create_dev_environment::CreateDevEnvironmentError> for Error {
113 fn from(err: crate::operation::create_dev_environment::CreateDevEnvironmentError) -> Self {
114 match err {
115 crate::operation::create_dev_environment::CreateDevEnvironmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
116 crate::operation::create_dev_environment::CreateDevEnvironmentError::ConflictException(inner) => Error::ConflictException(inner),
117 crate::operation::create_dev_environment::CreateDevEnvironmentError::ResourceNotFoundException(inner) => {
118 Error::ResourceNotFoundException(inner)
119 }
120 crate::operation::create_dev_environment::CreateDevEnvironmentError::ServiceQuotaExceededException(inner) => {
121 Error::ServiceQuotaExceededException(inner)
122 }
123 crate::operation::create_dev_environment::CreateDevEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
124 crate::operation::create_dev_environment::CreateDevEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
125 crate::operation::create_dev_environment::CreateDevEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
126 }
127 }
128}
129impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>> for Error
130where
131 R: Send + Sync + std::fmt::Debug + 'static,
132{
133 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>) -> Self {
134 match err {
135 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
136 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
137 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
138 source: err.into(),
139 }),
140 }
141 }
142}
143impl From<crate::operation::create_project::CreateProjectError> for Error {
144 fn from(err: crate::operation::create_project::CreateProjectError) -> Self {
145 match err {
146 crate::operation::create_project::CreateProjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
147 crate::operation::create_project::CreateProjectError::ConflictException(inner) => Error::ConflictException(inner),
148 crate::operation::create_project::CreateProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
149 crate::operation::create_project::CreateProjectError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
150 crate::operation::create_project::CreateProjectError::ThrottlingException(inner) => Error::ThrottlingException(inner),
151 crate::operation::create_project::CreateProjectError::ValidationException(inner) => Error::ValidationException(inner),
152 crate::operation::create_project::CreateProjectError::Unhandled(inner) => Error::Unhandled(inner),
153 }
154 }
155}
156impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_source_repository::CreateSourceRepositoryError, R>> for Error
157where
158 R: Send + Sync + std::fmt::Debug + 'static,
159{
160 fn from(
161 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_source_repository::CreateSourceRepositoryError, R>,
162 ) -> Self {
163 match err {
164 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
165 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
166 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
167 source: err.into(),
168 }),
169 }
170 }
171}
172impl From<crate::operation::create_source_repository::CreateSourceRepositoryError> for Error {
173 fn from(err: crate::operation::create_source_repository::CreateSourceRepositoryError) -> Self {
174 match err {
175 crate::operation::create_source_repository::CreateSourceRepositoryError::AccessDeniedException(inner) => {
176 Error::AccessDeniedException(inner)
177 }
178 crate::operation::create_source_repository::CreateSourceRepositoryError::ConflictException(inner) => Error::ConflictException(inner),
179 crate::operation::create_source_repository::CreateSourceRepositoryError::ResourceNotFoundException(inner) => {
180 Error::ResourceNotFoundException(inner)
181 }
182 crate::operation::create_source_repository::CreateSourceRepositoryError::ServiceQuotaExceededException(inner) => {
183 Error::ServiceQuotaExceededException(inner)
184 }
185 crate::operation::create_source_repository::CreateSourceRepositoryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
186 crate::operation::create_source_repository::CreateSourceRepositoryError::ValidationException(inner) => Error::ValidationException(inner),
187 crate::operation::create_source_repository::CreateSourceRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
188 }
189 }
190}
191impl<R>
192 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchError, R>>
193 for Error
194where
195 R: Send + Sync + std::fmt::Debug + 'static,
196{
197 fn from(
198 err: ::aws_smithy_runtime_api::client::result::SdkError<
199 crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchError,
200 R,
201 >,
202 ) -> Self {
203 match err {
204 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
205 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
206 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
207 source: err.into(),
208 }),
209 }
210 }
211}
212impl From<crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchError> for Error {
213 fn from(err: crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchError) -> Self {
214 match err {
215 crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchError::AccessDeniedException(inner) => {
216 Error::AccessDeniedException(inner)
217 }
218 crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchError::ConflictException(inner) => {
219 Error::ConflictException(inner)
220 }
221 crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchError::ResourceNotFoundException(inner) => {
222 Error::ResourceNotFoundException(inner)
223 }
224 crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchError::ServiceQuotaExceededException(inner) => {
225 Error::ServiceQuotaExceededException(inner)
226 }
227 crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchError::ThrottlingException(inner) => {
228 Error::ThrottlingException(inner)
229 }
230 crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchError::ValidationException(inner) => {
231 Error::ValidationException(inner)
232 }
233 crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchError::Unhandled(inner) => Error::Unhandled(inner),
234 }
235 }
236}
237impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_token::DeleteAccessTokenError, R>> for Error
238where
239 R: Send + Sync + std::fmt::Debug + 'static,
240{
241 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_token::DeleteAccessTokenError, R>) -> Self {
242 match err {
243 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
244 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
245 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
246 source: err.into(),
247 }),
248 }
249 }
250}
251impl From<crate::operation::delete_access_token::DeleteAccessTokenError> for Error {
252 fn from(err: crate::operation::delete_access_token::DeleteAccessTokenError) -> Self {
253 match err {
254 crate::operation::delete_access_token::DeleteAccessTokenError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
255 crate::operation::delete_access_token::DeleteAccessTokenError::ConflictException(inner) => Error::ConflictException(inner),
256 crate::operation::delete_access_token::DeleteAccessTokenError::ResourceNotFoundException(inner) => {
257 Error::ResourceNotFoundException(inner)
258 }
259 crate::operation::delete_access_token::DeleteAccessTokenError::ServiceQuotaExceededException(inner) => {
260 Error::ServiceQuotaExceededException(inner)
261 }
262 crate::operation::delete_access_token::DeleteAccessTokenError::ThrottlingException(inner) => Error::ThrottlingException(inner),
263 crate::operation::delete_access_token::DeleteAccessTokenError::ValidationException(inner) => Error::ValidationException(inner),
264 crate::operation::delete_access_token::DeleteAccessTokenError::Unhandled(inner) => Error::Unhandled(inner),
265 }
266 }
267}
268impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dev_environment::DeleteDevEnvironmentError, R>> for Error
269where
270 R: Send + Sync + std::fmt::Debug + 'static,
271{
272 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dev_environment::DeleteDevEnvironmentError, R>) -> Self {
273 match err {
274 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
275 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
276 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
277 source: err.into(),
278 }),
279 }
280 }
281}
282impl From<crate::operation::delete_dev_environment::DeleteDevEnvironmentError> for Error {
283 fn from(err: crate::operation::delete_dev_environment::DeleteDevEnvironmentError) -> Self {
284 match err {
285 crate::operation::delete_dev_environment::DeleteDevEnvironmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
286 crate::operation::delete_dev_environment::DeleteDevEnvironmentError::ConflictException(inner) => Error::ConflictException(inner),
287 crate::operation::delete_dev_environment::DeleteDevEnvironmentError::ResourceNotFoundException(inner) => {
288 Error::ResourceNotFoundException(inner)
289 }
290 crate::operation::delete_dev_environment::DeleteDevEnvironmentError::ServiceQuotaExceededException(inner) => {
291 Error::ServiceQuotaExceededException(inner)
292 }
293 crate::operation::delete_dev_environment::DeleteDevEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
294 crate::operation::delete_dev_environment::DeleteDevEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
295 crate::operation::delete_dev_environment::DeleteDevEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
296 }
297 }
298}
299impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>> for Error
300where
301 R: Send + Sync + std::fmt::Debug + 'static,
302{
303 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>) -> Self {
304 match err {
305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
308 source: err.into(),
309 }),
310 }
311 }
312}
313impl From<crate::operation::delete_project::DeleteProjectError> for Error {
314 fn from(err: crate::operation::delete_project::DeleteProjectError) -> Self {
315 match err {
316 crate::operation::delete_project::DeleteProjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
317 crate::operation::delete_project::DeleteProjectError::ConflictException(inner) => Error::ConflictException(inner),
318 crate::operation::delete_project::DeleteProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
319 crate::operation::delete_project::DeleteProjectError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
320 crate::operation::delete_project::DeleteProjectError::ThrottlingException(inner) => Error::ThrottlingException(inner),
321 crate::operation::delete_project::DeleteProjectError::ValidationException(inner) => Error::ValidationException(inner),
322 crate::operation::delete_project::DeleteProjectError::Unhandled(inner) => Error::Unhandled(inner),
323 }
324 }
325}
326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_source_repository::DeleteSourceRepositoryError, R>> for Error
327where
328 R: Send + Sync + std::fmt::Debug + 'static,
329{
330 fn from(
331 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_source_repository::DeleteSourceRepositoryError, R>,
332 ) -> Self {
333 match err {
334 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
335 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
336 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
337 source: err.into(),
338 }),
339 }
340 }
341}
342impl From<crate::operation::delete_source_repository::DeleteSourceRepositoryError> for Error {
343 fn from(err: crate::operation::delete_source_repository::DeleteSourceRepositoryError) -> Self {
344 match err {
345 crate::operation::delete_source_repository::DeleteSourceRepositoryError::AccessDeniedException(inner) => {
346 Error::AccessDeniedException(inner)
347 }
348 crate::operation::delete_source_repository::DeleteSourceRepositoryError::ConflictException(inner) => Error::ConflictException(inner),
349 crate::operation::delete_source_repository::DeleteSourceRepositoryError::ResourceNotFoundException(inner) => {
350 Error::ResourceNotFoundException(inner)
351 }
352 crate::operation::delete_source_repository::DeleteSourceRepositoryError::ServiceQuotaExceededException(inner) => {
353 Error::ServiceQuotaExceededException(inner)
354 }
355 crate::operation::delete_source_repository::DeleteSourceRepositoryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
356 crate::operation::delete_source_repository::DeleteSourceRepositoryError::ValidationException(inner) => Error::ValidationException(inner),
357 crate::operation::delete_source_repository::DeleteSourceRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
358 }
359 }
360}
361impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>> for Error
362where
363 R: Send + Sync + std::fmt::Debug + 'static,
364{
365 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>) -> Self {
366 match err {
367 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
368 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
369 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
370 source: err.into(),
371 }),
372 }
373 }
374}
375impl From<crate::operation::delete_space::DeleteSpaceError> for Error {
376 fn from(err: crate::operation::delete_space::DeleteSpaceError) -> Self {
377 match err {
378 crate::operation::delete_space::DeleteSpaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
379 crate::operation::delete_space::DeleteSpaceError::ConflictException(inner) => Error::ConflictException(inner),
380 crate::operation::delete_space::DeleteSpaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
381 crate::operation::delete_space::DeleteSpaceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
382 crate::operation::delete_space::DeleteSpaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
383 crate::operation::delete_space::DeleteSpaceError::ValidationException(inner) => Error::ValidationException(inner),
384 crate::operation::delete_space::DeleteSpaceError::Unhandled(inner) => Error::Unhandled(inner),
385 }
386 }
387}
388impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dev_environment::GetDevEnvironmentError, R>> for Error
389where
390 R: Send + Sync + std::fmt::Debug + 'static,
391{
392 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dev_environment::GetDevEnvironmentError, R>) -> Self {
393 match err {
394 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
395 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
396 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
397 source: err.into(),
398 }),
399 }
400 }
401}
402impl From<crate::operation::get_dev_environment::GetDevEnvironmentError> for Error {
403 fn from(err: crate::operation::get_dev_environment::GetDevEnvironmentError) -> Self {
404 match err {
405 crate::operation::get_dev_environment::GetDevEnvironmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
406 crate::operation::get_dev_environment::GetDevEnvironmentError::ConflictException(inner) => Error::ConflictException(inner),
407 crate::operation::get_dev_environment::GetDevEnvironmentError::ResourceNotFoundException(inner) => {
408 Error::ResourceNotFoundException(inner)
409 }
410 crate::operation::get_dev_environment::GetDevEnvironmentError::ServiceQuotaExceededException(inner) => {
411 Error::ServiceQuotaExceededException(inner)
412 }
413 crate::operation::get_dev_environment::GetDevEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
414 crate::operation::get_dev_environment::GetDevEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
415 crate::operation::get_dev_environment::GetDevEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
416 }
417 }
418}
419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_project::GetProjectError, R>> for Error
420where
421 R: Send + Sync + std::fmt::Debug + 'static,
422{
423 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_project::GetProjectError, R>) -> Self {
424 match err {
425 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
426 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
427 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
428 source: err.into(),
429 }),
430 }
431 }
432}
433impl From<crate::operation::get_project::GetProjectError> for Error {
434 fn from(err: crate::operation::get_project::GetProjectError) -> Self {
435 match err {
436 crate::operation::get_project::GetProjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
437 crate::operation::get_project::GetProjectError::ConflictException(inner) => Error::ConflictException(inner),
438 crate::operation::get_project::GetProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
439 crate::operation::get_project::GetProjectError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
440 crate::operation::get_project::GetProjectError::ThrottlingException(inner) => Error::ThrottlingException(inner),
441 crate::operation::get_project::GetProjectError::ValidationException(inner) => Error::ValidationException(inner),
442 crate::operation::get_project::GetProjectError::Unhandled(inner) => Error::Unhandled(inner),
443 }
444 }
445}
446impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_source_repository::GetSourceRepositoryError, R>> for Error
447where
448 R: Send + Sync + std::fmt::Debug + 'static,
449{
450 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_source_repository::GetSourceRepositoryError, R>) -> Self {
451 match err {
452 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
453 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
454 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
455 source: err.into(),
456 }),
457 }
458 }
459}
460impl From<crate::operation::get_source_repository::GetSourceRepositoryError> for Error {
461 fn from(err: crate::operation::get_source_repository::GetSourceRepositoryError) -> Self {
462 match err {
463 crate::operation::get_source_repository::GetSourceRepositoryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
464 crate::operation::get_source_repository::GetSourceRepositoryError::ConflictException(inner) => Error::ConflictException(inner),
465 crate::operation::get_source_repository::GetSourceRepositoryError::ResourceNotFoundException(inner) => {
466 Error::ResourceNotFoundException(inner)
467 }
468 crate::operation::get_source_repository::GetSourceRepositoryError::ServiceQuotaExceededException(inner) => {
469 Error::ServiceQuotaExceededException(inner)
470 }
471 crate::operation::get_source_repository::GetSourceRepositoryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
472 crate::operation::get_source_repository::GetSourceRepositoryError::ValidationException(inner) => Error::ValidationException(inner),
473 crate::operation::get_source_repository::GetSourceRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
474 }
475 }
476}
477impl<R>
478 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError, R>>
479 for Error
480where
481 R: Send + Sync + std::fmt::Debug + 'static,
482{
483 fn from(
484 err: ::aws_smithy_runtime_api::client::result::SdkError<
485 crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError,
486 R,
487 >,
488 ) -> Self {
489 match err {
490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
493 source: err.into(),
494 }),
495 }
496 }
497}
498impl From<crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError> for Error {
499 fn from(err: crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError) -> Self {
500 match err {
501 crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError::AccessDeniedException(inner) => {
502 Error::AccessDeniedException(inner)
503 }
504 crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError::ConflictException(inner) => {
505 Error::ConflictException(inner)
506 }
507 crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError::ResourceNotFoundException(inner) => {
508 Error::ResourceNotFoundException(inner)
509 }
510 crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError::ServiceQuotaExceededException(inner) => {
511 Error::ServiceQuotaExceededException(inner)
512 }
513 crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError::ThrottlingException(inner) => {
514 Error::ThrottlingException(inner)
515 }
516 crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError::ValidationException(inner) => {
517 Error::ValidationException(inner)
518 }
519 crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError::Unhandled(inner) => Error::Unhandled(inner),
520 }
521 }
522}
523impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_space::GetSpaceError, R>> for Error
524where
525 R: Send + Sync + std::fmt::Debug + 'static,
526{
527 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_space::GetSpaceError, R>) -> Self {
528 match err {
529 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
530 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
531 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
532 source: err.into(),
533 }),
534 }
535 }
536}
537impl From<crate::operation::get_space::GetSpaceError> for Error {
538 fn from(err: crate::operation::get_space::GetSpaceError) -> Self {
539 match err {
540 crate::operation::get_space::GetSpaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
541 crate::operation::get_space::GetSpaceError::ConflictException(inner) => Error::ConflictException(inner),
542 crate::operation::get_space::GetSpaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
543 crate::operation::get_space::GetSpaceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
544 crate::operation::get_space::GetSpaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
545 crate::operation::get_space::GetSpaceError::ValidationException(inner) => Error::ValidationException(inner),
546 crate::operation::get_space::GetSpaceError::Unhandled(inner) => Error::Unhandled(inner),
547 }
548 }
549}
550impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subscription::GetSubscriptionError, R>> for Error
551where
552 R: Send + Sync + std::fmt::Debug + 'static,
553{
554 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subscription::GetSubscriptionError, R>) -> Self {
555 match err {
556 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
557 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
558 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
559 source: err.into(),
560 }),
561 }
562 }
563}
564impl From<crate::operation::get_subscription::GetSubscriptionError> for Error {
565 fn from(err: crate::operation::get_subscription::GetSubscriptionError) -> Self {
566 match err {
567 crate::operation::get_subscription::GetSubscriptionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
568 crate::operation::get_subscription::GetSubscriptionError::ConflictException(inner) => Error::ConflictException(inner),
569 crate::operation::get_subscription::GetSubscriptionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
570 crate::operation::get_subscription::GetSubscriptionError::ServiceQuotaExceededException(inner) => {
571 Error::ServiceQuotaExceededException(inner)
572 }
573 crate::operation::get_subscription::GetSubscriptionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
574 crate::operation::get_subscription::GetSubscriptionError::ValidationException(inner) => Error::ValidationException(inner),
575 crate::operation::get_subscription::GetSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
576 }
577 }
578}
579impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user_details::GetUserDetailsError, R>> for Error
580where
581 R: Send + Sync + std::fmt::Debug + 'static,
582{
583 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user_details::GetUserDetailsError, R>) -> Self {
584 match err {
585 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
586 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
587 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
588 source: err.into(),
589 }),
590 }
591 }
592}
593impl From<crate::operation::get_user_details::GetUserDetailsError> for Error {
594 fn from(err: crate::operation::get_user_details::GetUserDetailsError) -> Self {
595 match err {
596 crate::operation::get_user_details::GetUserDetailsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
597 crate::operation::get_user_details::GetUserDetailsError::ConflictException(inner) => Error::ConflictException(inner),
598 crate::operation::get_user_details::GetUserDetailsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
599 crate::operation::get_user_details::GetUserDetailsError::ServiceQuotaExceededException(inner) => {
600 Error::ServiceQuotaExceededException(inner)
601 }
602 crate::operation::get_user_details::GetUserDetailsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
603 crate::operation::get_user_details::GetUserDetailsError::ValidationException(inner) => Error::ValidationException(inner),
604 crate::operation::get_user_details::GetUserDetailsError::Unhandled(inner) => Error::Unhandled(inner),
605 }
606 }
607}
608impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workflow::GetWorkflowError, R>> for Error
609where
610 R: Send + Sync + std::fmt::Debug + 'static,
611{
612 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workflow::GetWorkflowError, R>) -> Self {
613 match err {
614 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
615 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
616 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
617 source: err.into(),
618 }),
619 }
620 }
621}
622impl From<crate::operation::get_workflow::GetWorkflowError> for Error {
623 fn from(err: crate::operation::get_workflow::GetWorkflowError) -> Self {
624 match err {
625 crate::operation::get_workflow::GetWorkflowError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
626 crate::operation::get_workflow::GetWorkflowError::ConflictException(inner) => Error::ConflictException(inner),
627 crate::operation::get_workflow::GetWorkflowError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
628 crate::operation::get_workflow::GetWorkflowError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
629 crate::operation::get_workflow::GetWorkflowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
630 crate::operation::get_workflow::GetWorkflowError::ValidationException(inner) => Error::ValidationException(inner),
631 crate::operation::get_workflow::GetWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
632 }
633 }
634}
635impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workflow_run::GetWorkflowRunError, R>> for Error
636where
637 R: Send + Sync + std::fmt::Debug + 'static,
638{
639 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workflow_run::GetWorkflowRunError, R>) -> Self {
640 match err {
641 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
642 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
643 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
644 source: err.into(),
645 }),
646 }
647 }
648}
649impl From<crate::operation::get_workflow_run::GetWorkflowRunError> for Error {
650 fn from(err: crate::operation::get_workflow_run::GetWorkflowRunError) -> Self {
651 match err {
652 crate::operation::get_workflow_run::GetWorkflowRunError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
653 crate::operation::get_workflow_run::GetWorkflowRunError::ConflictException(inner) => Error::ConflictException(inner),
654 crate::operation::get_workflow_run::GetWorkflowRunError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
655 crate::operation::get_workflow_run::GetWorkflowRunError::ServiceQuotaExceededException(inner) => {
656 Error::ServiceQuotaExceededException(inner)
657 }
658 crate::operation::get_workflow_run::GetWorkflowRunError::ThrottlingException(inner) => Error::ThrottlingException(inner),
659 crate::operation::get_workflow_run::GetWorkflowRunError::ValidationException(inner) => Error::ValidationException(inner),
660 crate::operation::get_workflow_run::GetWorkflowRunError::Unhandled(inner) => Error::Unhandled(inner),
661 }
662 }
663}
664impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_access_tokens::ListAccessTokensError, R>> for Error
665where
666 R: Send + Sync + std::fmt::Debug + 'static,
667{
668 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_access_tokens::ListAccessTokensError, R>) -> Self {
669 match err {
670 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
671 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
672 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
673 source: err.into(),
674 }),
675 }
676 }
677}
678impl From<crate::operation::list_access_tokens::ListAccessTokensError> for Error {
679 fn from(err: crate::operation::list_access_tokens::ListAccessTokensError) -> Self {
680 match err {
681 crate::operation::list_access_tokens::ListAccessTokensError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
682 crate::operation::list_access_tokens::ListAccessTokensError::ConflictException(inner) => Error::ConflictException(inner),
683 crate::operation::list_access_tokens::ListAccessTokensError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
684 crate::operation::list_access_tokens::ListAccessTokensError::ServiceQuotaExceededException(inner) => {
685 Error::ServiceQuotaExceededException(inner)
686 }
687 crate::operation::list_access_tokens::ListAccessTokensError::ThrottlingException(inner) => Error::ThrottlingException(inner),
688 crate::operation::list_access_tokens::ListAccessTokensError::ValidationException(inner) => Error::ValidationException(inner),
689 crate::operation::list_access_tokens::ListAccessTokensError::Unhandled(inner) => Error::Unhandled(inner),
690 }
691 }
692}
693impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dev_environments::ListDevEnvironmentsError, R>> for Error
694where
695 R: Send + Sync + std::fmt::Debug + 'static,
696{
697 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dev_environments::ListDevEnvironmentsError, R>) -> Self {
698 match err {
699 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
700 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
701 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
702 source: err.into(),
703 }),
704 }
705 }
706}
707impl From<crate::operation::list_dev_environments::ListDevEnvironmentsError> for Error {
708 fn from(err: crate::operation::list_dev_environments::ListDevEnvironmentsError) -> Self {
709 match err {
710 crate::operation::list_dev_environments::ListDevEnvironmentsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
711 crate::operation::list_dev_environments::ListDevEnvironmentsError::ConflictException(inner) => Error::ConflictException(inner),
712 crate::operation::list_dev_environments::ListDevEnvironmentsError::ResourceNotFoundException(inner) => {
713 Error::ResourceNotFoundException(inner)
714 }
715 crate::operation::list_dev_environments::ListDevEnvironmentsError::ServiceQuotaExceededException(inner) => {
716 Error::ServiceQuotaExceededException(inner)
717 }
718 crate::operation::list_dev_environments::ListDevEnvironmentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
719 crate::operation::list_dev_environments::ListDevEnvironmentsError::ValidationException(inner) => Error::ValidationException(inner),
720 crate::operation::list_dev_environments::ListDevEnvironmentsError::Unhandled(inner) => Error::Unhandled(inner),
721 }
722 }
723}
724impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError, R>>
725 for Error
726where
727 R: Send + Sync + std::fmt::Debug + 'static,
728{
729 fn from(
730 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError, R>,
731 ) -> Self {
732 match err {
733 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
734 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
735 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
736 source: err.into(),
737 }),
738 }
739 }
740}
741impl From<crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError> for Error {
742 fn from(err: crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError) -> Self {
743 match err {
744 crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError::AccessDeniedException(inner) => {
745 Error::AccessDeniedException(inner)
746 }
747 crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError::ConflictException(inner) => {
748 Error::ConflictException(inner)
749 }
750 crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError::ResourceNotFoundException(inner) => {
751 Error::ResourceNotFoundException(inner)
752 }
753 crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError::ServiceQuotaExceededException(inner) => {
754 Error::ServiceQuotaExceededException(inner)
755 }
756 crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError::ThrottlingException(inner) => {
757 Error::ThrottlingException(inner)
758 }
759 crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError::ValidationException(inner) => {
760 Error::ValidationException(inner)
761 }
762 crate::operation::list_dev_environment_sessions::ListDevEnvironmentSessionsError::Unhandled(inner) => Error::Unhandled(inner),
763 }
764 }
765}
766impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_event_logs::ListEventLogsError, R>> for Error
767where
768 R: Send + Sync + std::fmt::Debug + 'static,
769{
770 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_event_logs::ListEventLogsError, R>) -> Self {
771 match err {
772 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
773 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
774 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
775 source: err.into(),
776 }),
777 }
778 }
779}
780impl From<crate::operation::list_event_logs::ListEventLogsError> for Error {
781 fn from(err: crate::operation::list_event_logs::ListEventLogsError) -> Self {
782 match err {
783 crate::operation::list_event_logs::ListEventLogsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
784 crate::operation::list_event_logs::ListEventLogsError::ConflictException(inner) => Error::ConflictException(inner),
785 crate::operation::list_event_logs::ListEventLogsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
786 crate::operation::list_event_logs::ListEventLogsError::ServiceQuotaExceededException(inner) => {
787 Error::ServiceQuotaExceededException(inner)
788 }
789 crate::operation::list_event_logs::ListEventLogsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
790 crate::operation::list_event_logs::ListEventLogsError::ValidationException(inner) => Error::ValidationException(inner),
791 crate::operation::list_event_logs::ListEventLogsError::Unhandled(inner) => Error::Unhandled(inner),
792 }
793 }
794}
795impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>> for Error
796where
797 R: Send + Sync + std::fmt::Debug + 'static,
798{
799 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>) -> Self {
800 match err {
801 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
802 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
803 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
804 source: err.into(),
805 }),
806 }
807 }
808}
809impl From<crate::operation::list_projects::ListProjectsError> for Error {
810 fn from(err: crate::operation::list_projects::ListProjectsError) -> Self {
811 match err {
812 crate::operation::list_projects::ListProjectsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
813 crate::operation::list_projects::ListProjectsError::ConflictException(inner) => Error::ConflictException(inner),
814 crate::operation::list_projects::ListProjectsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
815 crate::operation::list_projects::ListProjectsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
816 crate::operation::list_projects::ListProjectsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
817 crate::operation::list_projects::ListProjectsError::ValidationException(inner) => Error::ValidationException(inner),
818 crate::operation::list_projects::ListProjectsError::Unhandled(inner) => Error::Unhandled(inner),
819 }
820 }
821}
822impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_source_repositories::ListSourceRepositoriesError, R>> for Error
823where
824 R: Send + Sync + std::fmt::Debug + 'static,
825{
826 fn from(
827 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_source_repositories::ListSourceRepositoriesError, R>,
828 ) -> Self {
829 match err {
830 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
831 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
832 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
833 source: err.into(),
834 }),
835 }
836 }
837}
838impl From<crate::operation::list_source_repositories::ListSourceRepositoriesError> for Error {
839 fn from(err: crate::operation::list_source_repositories::ListSourceRepositoriesError) -> Self {
840 match err {
841 crate::operation::list_source_repositories::ListSourceRepositoriesError::AccessDeniedException(inner) => {
842 Error::AccessDeniedException(inner)
843 }
844 crate::operation::list_source_repositories::ListSourceRepositoriesError::ConflictException(inner) => Error::ConflictException(inner),
845 crate::operation::list_source_repositories::ListSourceRepositoriesError::ResourceNotFoundException(inner) => {
846 Error::ResourceNotFoundException(inner)
847 }
848 crate::operation::list_source_repositories::ListSourceRepositoriesError::ServiceQuotaExceededException(inner) => {
849 Error::ServiceQuotaExceededException(inner)
850 }
851 crate::operation::list_source_repositories::ListSourceRepositoriesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
852 crate::operation::list_source_repositories::ListSourceRepositoriesError::ValidationException(inner) => Error::ValidationException(inner),
853 crate::operation::list_source_repositories::ListSourceRepositoriesError::Unhandled(inner) => Error::Unhandled(inner),
854 }
855 }
856}
857impl<R>
858 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_source_repository_branches::ListSourceRepositoryBranchesError, R>>
859 for Error
860where
861 R: Send + Sync + std::fmt::Debug + 'static,
862{
863 fn from(
864 err: ::aws_smithy_runtime_api::client::result::SdkError<
865 crate::operation::list_source_repository_branches::ListSourceRepositoryBranchesError,
866 R,
867 >,
868 ) -> Self {
869 match err {
870 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
871 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
872 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
873 source: err.into(),
874 }),
875 }
876 }
877}
878impl From<crate::operation::list_source_repository_branches::ListSourceRepositoryBranchesError> for Error {
879 fn from(err: crate::operation::list_source_repository_branches::ListSourceRepositoryBranchesError) -> Self {
880 match err {
881 crate::operation::list_source_repository_branches::ListSourceRepositoryBranchesError::AccessDeniedException(inner) => {
882 Error::AccessDeniedException(inner)
883 }
884 crate::operation::list_source_repository_branches::ListSourceRepositoryBranchesError::ConflictException(inner) => {
885 Error::ConflictException(inner)
886 }
887 crate::operation::list_source_repository_branches::ListSourceRepositoryBranchesError::ResourceNotFoundException(inner) => {
888 Error::ResourceNotFoundException(inner)
889 }
890 crate::operation::list_source_repository_branches::ListSourceRepositoryBranchesError::ServiceQuotaExceededException(inner) => {
891 Error::ServiceQuotaExceededException(inner)
892 }
893 crate::operation::list_source_repository_branches::ListSourceRepositoryBranchesError::ThrottlingException(inner) => {
894 Error::ThrottlingException(inner)
895 }
896 crate::operation::list_source_repository_branches::ListSourceRepositoryBranchesError::ValidationException(inner) => {
897 Error::ValidationException(inner)
898 }
899 crate::operation::list_source_repository_branches::ListSourceRepositoryBranchesError::Unhandled(inner) => Error::Unhandled(inner),
900 }
901 }
902}
903impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>> for Error
904where
905 R: Send + Sync + std::fmt::Debug + 'static,
906{
907 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>) -> Self {
908 match err {
909 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
910 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
911 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
912 source: err.into(),
913 }),
914 }
915 }
916}
917impl From<crate::operation::list_spaces::ListSpacesError> for Error {
918 fn from(err: crate::operation::list_spaces::ListSpacesError) -> Self {
919 match err {
920 crate::operation::list_spaces::ListSpacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
921 crate::operation::list_spaces::ListSpacesError::ConflictException(inner) => Error::ConflictException(inner),
922 crate::operation::list_spaces::ListSpacesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
923 crate::operation::list_spaces::ListSpacesError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
924 crate::operation::list_spaces::ListSpacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
925 crate::operation::list_spaces::ListSpacesError::ValidationException(inner) => Error::ValidationException(inner),
926 crate::operation::list_spaces::ListSpacesError::Unhandled(inner) => Error::Unhandled(inner),
927 }
928 }
929}
930impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflow_runs::ListWorkflowRunsError, R>> for Error
931where
932 R: Send + Sync + std::fmt::Debug + 'static,
933{
934 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflow_runs::ListWorkflowRunsError, R>) -> Self {
935 match err {
936 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
937 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
938 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
939 source: err.into(),
940 }),
941 }
942 }
943}
944impl From<crate::operation::list_workflow_runs::ListWorkflowRunsError> for Error {
945 fn from(err: crate::operation::list_workflow_runs::ListWorkflowRunsError) -> Self {
946 match err {
947 crate::operation::list_workflow_runs::ListWorkflowRunsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
948 crate::operation::list_workflow_runs::ListWorkflowRunsError::ConflictException(inner) => Error::ConflictException(inner),
949 crate::operation::list_workflow_runs::ListWorkflowRunsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
950 crate::operation::list_workflow_runs::ListWorkflowRunsError::ServiceQuotaExceededException(inner) => {
951 Error::ServiceQuotaExceededException(inner)
952 }
953 crate::operation::list_workflow_runs::ListWorkflowRunsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
954 crate::operation::list_workflow_runs::ListWorkflowRunsError::ValidationException(inner) => Error::ValidationException(inner),
955 crate::operation::list_workflow_runs::ListWorkflowRunsError::Unhandled(inner) => Error::Unhandled(inner),
956 }
957 }
958}
959impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflows::ListWorkflowsError, R>> for Error
960where
961 R: Send + Sync + std::fmt::Debug + 'static,
962{
963 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflows::ListWorkflowsError, R>) -> Self {
964 match err {
965 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
966 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
967 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
968 source: err.into(),
969 }),
970 }
971 }
972}
973impl From<crate::operation::list_workflows::ListWorkflowsError> for Error {
974 fn from(err: crate::operation::list_workflows::ListWorkflowsError) -> Self {
975 match err {
976 crate::operation::list_workflows::ListWorkflowsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
977 crate::operation::list_workflows::ListWorkflowsError::ConflictException(inner) => Error::ConflictException(inner),
978 crate::operation::list_workflows::ListWorkflowsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
979 crate::operation::list_workflows::ListWorkflowsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
980 crate::operation::list_workflows::ListWorkflowsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
981 crate::operation::list_workflows::ListWorkflowsError::ValidationException(inner) => Error::ValidationException(inner),
982 crate::operation::list_workflows::ListWorkflowsError::Unhandled(inner) => Error::Unhandled(inner),
983 }
984 }
985}
986impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_dev_environment::StartDevEnvironmentError, R>> for Error
987where
988 R: Send + Sync + std::fmt::Debug + 'static,
989{
990 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_dev_environment::StartDevEnvironmentError, R>) -> Self {
991 match err {
992 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
993 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
994 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
995 source: err.into(),
996 }),
997 }
998 }
999}
1000impl From<crate::operation::start_dev_environment::StartDevEnvironmentError> for Error {
1001 fn from(err: crate::operation::start_dev_environment::StartDevEnvironmentError) -> Self {
1002 match err {
1003 crate::operation::start_dev_environment::StartDevEnvironmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1004 crate::operation::start_dev_environment::StartDevEnvironmentError::ConflictException(inner) => Error::ConflictException(inner),
1005 crate::operation::start_dev_environment::StartDevEnvironmentError::ResourceNotFoundException(inner) => {
1006 Error::ResourceNotFoundException(inner)
1007 }
1008 crate::operation::start_dev_environment::StartDevEnvironmentError::ServiceQuotaExceededException(inner) => {
1009 Error::ServiceQuotaExceededException(inner)
1010 }
1011 crate::operation::start_dev_environment::StartDevEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1012 crate::operation::start_dev_environment::StartDevEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
1013 crate::operation::start_dev_environment::StartDevEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
1014 }
1015 }
1016}
1017impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError, R>>
1018 for Error
1019where
1020 R: Send + Sync + std::fmt::Debug + 'static,
1021{
1022 fn from(
1023 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError, R>,
1024 ) -> Self {
1025 match err {
1026 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1027 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1028 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1029 source: err.into(),
1030 }),
1031 }
1032 }
1033}
1034impl From<crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError> for Error {
1035 fn from(err: crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError) -> Self {
1036 match err {
1037 crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError::AccessDeniedException(inner) => {
1038 Error::AccessDeniedException(inner)
1039 }
1040 crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError::ConflictException(inner) => {
1041 Error::ConflictException(inner)
1042 }
1043 crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError::ResourceNotFoundException(inner) => {
1044 Error::ResourceNotFoundException(inner)
1045 }
1046 crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError::ServiceQuotaExceededException(inner) => {
1047 Error::ServiceQuotaExceededException(inner)
1048 }
1049 crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError::ThrottlingException(inner) => {
1050 Error::ThrottlingException(inner)
1051 }
1052 crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError::ValidationException(inner) => {
1053 Error::ValidationException(inner)
1054 }
1055 crate::operation::start_dev_environment_session::StartDevEnvironmentSessionError::Unhandled(inner) => Error::Unhandled(inner),
1056 }
1057 }
1058}
1059impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_workflow_run::StartWorkflowRunError, R>> for Error
1060where
1061 R: Send + Sync + std::fmt::Debug + 'static,
1062{
1063 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_workflow_run::StartWorkflowRunError, R>) -> Self {
1064 match err {
1065 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1066 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1067 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1068 source: err.into(),
1069 }),
1070 }
1071 }
1072}
1073impl From<crate::operation::start_workflow_run::StartWorkflowRunError> for Error {
1074 fn from(err: crate::operation::start_workflow_run::StartWorkflowRunError) -> Self {
1075 match err {
1076 crate::operation::start_workflow_run::StartWorkflowRunError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1077 crate::operation::start_workflow_run::StartWorkflowRunError::ConflictException(inner) => Error::ConflictException(inner),
1078 crate::operation::start_workflow_run::StartWorkflowRunError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1079 crate::operation::start_workflow_run::StartWorkflowRunError::ServiceQuotaExceededException(inner) => {
1080 Error::ServiceQuotaExceededException(inner)
1081 }
1082 crate::operation::start_workflow_run::StartWorkflowRunError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1083 crate::operation::start_workflow_run::StartWorkflowRunError::ValidationException(inner) => Error::ValidationException(inner),
1084 crate::operation::start_workflow_run::StartWorkflowRunError::Unhandled(inner) => Error::Unhandled(inner),
1085 }
1086 }
1087}
1088impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_dev_environment::StopDevEnvironmentError, R>> for Error
1089where
1090 R: Send + Sync + std::fmt::Debug + 'static,
1091{
1092 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_dev_environment::StopDevEnvironmentError, R>) -> Self {
1093 match err {
1094 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1095 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1096 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1097 source: err.into(),
1098 }),
1099 }
1100 }
1101}
1102impl From<crate::operation::stop_dev_environment::StopDevEnvironmentError> for Error {
1103 fn from(err: crate::operation::stop_dev_environment::StopDevEnvironmentError) -> Self {
1104 match err {
1105 crate::operation::stop_dev_environment::StopDevEnvironmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1106 crate::operation::stop_dev_environment::StopDevEnvironmentError::ConflictException(inner) => Error::ConflictException(inner),
1107 crate::operation::stop_dev_environment::StopDevEnvironmentError::ResourceNotFoundException(inner) => {
1108 Error::ResourceNotFoundException(inner)
1109 }
1110 crate::operation::stop_dev_environment::StopDevEnvironmentError::ServiceQuotaExceededException(inner) => {
1111 Error::ServiceQuotaExceededException(inner)
1112 }
1113 crate::operation::stop_dev_environment::StopDevEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1114 crate::operation::stop_dev_environment::StopDevEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
1115 crate::operation::stop_dev_environment::StopDevEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
1116 }
1117 }
1118}
1119impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError, R>>
1120 for Error
1121where
1122 R: Send + Sync + std::fmt::Debug + 'static,
1123{
1124 fn from(
1125 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError, R>,
1126 ) -> Self {
1127 match err {
1128 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1129 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1130 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1131 source: err.into(),
1132 }),
1133 }
1134 }
1135}
1136impl From<crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError> for Error {
1137 fn from(err: crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError) -> Self {
1138 match err {
1139 crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError::AccessDeniedException(inner) => {
1140 Error::AccessDeniedException(inner)
1141 }
1142 crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError::ConflictException(inner) => {
1143 Error::ConflictException(inner)
1144 }
1145 crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError::ResourceNotFoundException(inner) => {
1146 Error::ResourceNotFoundException(inner)
1147 }
1148 crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError::ServiceQuotaExceededException(inner) => {
1149 Error::ServiceQuotaExceededException(inner)
1150 }
1151 crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError::ThrottlingException(inner) => {
1152 Error::ThrottlingException(inner)
1153 }
1154 crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError::ValidationException(inner) => {
1155 Error::ValidationException(inner)
1156 }
1157 crate::operation::stop_dev_environment_session::StopDevEnvironmentSessionError::Unhandled(inner) => Error::Unhandled(inner),
1158 }
1159 }
1160}
1161impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dev_environment::UpdateDevEnvironmentError, R>> for Error
1162where
1163 R: Send + Sync + std::fmt::Debug + 'static,
1164{
1165 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dev_environment::UpdateDevEnvironmentError, R>) -> Self {
1166 match err {
1167 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1168 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1169 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1170 source: err.into(),
1171 }),
1172 }
1173 }
1174}
1175impl From<crate::operation::update_dev_environment::UpdateDevEnvironmentError> for Error {
1176 fn from(err: crate::operation::update_dev_environment::UpdateDevEnvironmentError) -> Self {
1177 match err {
1178 crate::operation::update_dev_environment::UpdateDevEnvironmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1179 crate::operation::update_dev_environment::UpdateDevEnvironmentError::ConflictException(inner) => Error::ConflictException(inner),
1180 crate::operation::update_dev_environment::UpdateDevEnvironmentError::ResourceNotFoundException(inner) => {
1181 Error::ResourceNotFoundException(inner)
1182 }
1183 crate::operation::update_dev_environment::UpdateDevEnvironmentError::ServiceQuotaExceededException(inner) => {
1184 Error::ServiceQuotaExceededException(inner)
1185 }
1186 crate::operation::update_dev_environment::UpdateDevEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1187 crate::operation::update_dev_environment::UpdateDevEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
1188 crate::operation::update_dev_environment::UpdateDevEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
1189 }
1190 }
1191}
1192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>> for Error
1193where
1194 R: Send + Sync + std::fmt::Debug + 'static,
1195{
1196 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>) -> Self {
1197 match err {
1198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1201 source: err.into(),
1202 }),
1203 }
1204 }
1205}
1206impl From<crate::operation::update_project::UpdateProjectError> for Error {
1207 fn from(err: crate::operation::update_project::UpdateProjectError) -> Self {
1208 match err {
1209 crate::operation::update_project::UpdateProjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1210 crate::operation::update_project::UpdateProjectError::ConflictException(inner) => Error::ConflictException(inner),
1211 crate::operation::update_project::UpdateProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1212 crate::operation::update_project::UpdateProjectError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1213 crate::operation::update_project::UpdateProjectError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1214 crate::operation::update_project::UpdateProjectError::ValidationException(inner) => Error::ValidationException(inner),
1215 crate::operation::update_project::UpdateProjectError::Unhandled(inner) => Error::Unhandled(inner),
1216 }
1217 }
1218}
1219impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>> for Error
1220where
1221 R: Send + Sync + std::fmt::Debug + 'static,
1222{
1223 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>) -> Self {
1224 match err {
1225 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1226 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1227 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1228 source: err.into(),
1229 }),
1230 }
1231 }
1232}
1233impl From<crate::operation::update_space::UpdateSpaceError> for Error {
1234 fn from(err: crate::operation::update_space::UpdateSpaceError) -> Self {
1235 match err {
1236 crate::operation::update_space::UpdateSpaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1237 crate::operation::update_space::UpdateSpaceError::ConflictException(inner) => Error::ConflictException(inner),
1238 crate::operation::update_space::UpdateSpaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1239 crate::operation::update_space::UpdateSpaceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1240 crate::operation::update_space::UpdateSpaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1241 crate::operation::update_space::UpdateSpaceError::ValidationException(inner) => Error::ValidationException(inner),
1242 crate::operation::update_space::UpdateSpaceError::Unhandled(inner) => Error::Unhandled(inner),
1243 }
1244 }
1245}
1246impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_session::VerifySessionError, R>> for Error
1247where
1248 R: Send + Sync + std::fmt::Debug + 'static,
1249{
1250 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_session::VerifySessionError, R>) -> Self {
1251 match err {
1252 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1253 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1254 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1255 source: err.into(),
1256 }),
1257 }
1258 }
1259}
1260impl From<crate::operation::verify_session::VerifySessionError> for Error {
1261 fn from(err: crate::operation::verify_session::VerifySessionError) -> Self {
1262 match err {
1263 crate::operation::verify_session::VerifySessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1264 crate::operation::verify_session::VerifySessionError::ConflictException(inner) => Error::ConflictException(inner),
1265 crate::operation::verify_session::VerifySessionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1266 crate::operation::verify_session::VerifySessionError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1267 crate::operation::verify_session::VerifySessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1268 crate::operation::verify_session::VerifySessionError::ValidationException(inner) => Error::ValidationException(inner),
1269 crate::operation::verify_session::VerifySessionError::Unhandled(inner) => Error::Unhandled(inner),
1270 }
1271 }
1272}
1273impl ::std::error::Error for Error {
1274 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1275 match self {
1276 Error::AccessDeniedException(inner) => inner.source(),
1277 Error::ConflictException(inner) => inner.source(),
1278 Error::ResourceNotFoundException(inner) => inner.source(),
1279 Error::ServiceQuotaExceededException(inner) => inner.source(),
1280 Error::ThrottlingException(inner) => inner.source(),
1281 Error::ValidationException(inner) => inner.source(),
1282 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1283 }
1284 }
1285}
1286impl ::aws_types::request_id::RequestId for Error {
1287 fn request_id(&self) -> Option<&str> {
1288 match self {
1289 Self::AccessDeniedException(e) => e.request_id(),
1290 Self::ConflictException(e) => e.request_id(),
1291 Self::ResourceNotFoundException(e) => e.request_id(),
1292 Self::ServiceQuotaExceededException(e) => e.request_id(),
1293 Self::ThrottlingException(e) => e.request_id(),
1294 Self::ValidationException(e) => e.request_id(),
1295 Self::Unhandled(e) => e.meta.request_id(),
1296 }
1297 }
1298}