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::accept_curation_proposal::AcceptCurationProposalError, R>> for Error
72where
73 R: Send + Sync + std::fmt::Debug + 'static,
74{
75 fn from(
76 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_curation_proposal::AcceptCurationProposalError, R>,
77 ) -> Self {
78 match err {
79 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
80 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
81 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
82 source: err.into(),
83 }),
84 }
85 }
86}
87impl From<crate::operation::accept_curation_proposal::AcceptCurationProposalError> for Error {
88 fn from(err: crate::operation::accept_curation_proposal::AcceptCurationProposalError) -> Self {
89 match err {
90 crate::operation::accept_curation_proposal::AcceptCurationProposalError::ConflictException(inner) => Error::ConflictException(inner),
91 crate::operation::accept_curation_proposal::AcceptCurationProposalError::ResourceNotFoundException(inner) => {
92 Error::ResourceNotFoundException(inner)
93 }
94 crate::operation::accept_curation_proposal::AcceptCurationProposalError::ValidationException(inner) => Error::ValidationException(inner),
95 crate::operation::accept_curation_proposal::AcceptCurationProposalError::AccessDeniedException(inner) => {
96 Error::AccessDeniedException(inner)
97 }
98 crate::operation::accept_curation_proposal::AcceptCurationProposalError::InternalServerException(inner) => {
99 Error::InternalServerException(inner)
100 }
101 crate::operation::accept_curation_proposal::AcceptCurationProposalError::ThrottlingException(inner) => Error::ThrottlingException(inner),
102 crate::operation::accept_curation_proposal::AcceptCurationProposalError::Unhandled(inner) => Error::Unhandled(inner),
103 }
104 }
105}
106impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::agentic_retrieve::AgenticRetrieveError, R>> for Error
107where
108 R: Send + Sync + std::fmt::Debug + 'static,
109{
110 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::agentic_retrieve::AgenticRetrieveError, R>) -> Self {
111 match err {
112 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
113 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
114 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
115 source: err.into(),
116 }),
117 }
118 }
119}
120impl From<crate::operation::agentic_retrieve::AgenticRetrieveError> for Error {
121 fn from(err: crate::operation::agentic_retrieve::AgenticRetrieveError) -> Self {
122 match err {
123 crate::operation::agentic_retrieve::AgenticRetrieveError::ConflictException(inner) => Error::ConflictException(inner),
124 crate::operation::agentic_retrieve::AgenticRetrieveError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
125 crate::operation::agentic_retrieve::AgenticRetrieveError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
126 crate::operation::agentic_retrieve::AgenticRetrieveError::InternalServerException(inner) => Error::InternalServerException(inner),
127 crate::operation::agentic_retrieve::AgenticRetrieveError::ThrottlingException(inner) => Error::ThrottlingException(inner),
128 crate::operation::agentic_retrieve::AgenticRetrieveError::ValidationException(inner) => Error::ValidationException(inner),
129 crate::operation::agentic_retrieve::AgenticRetrieveError::Unhandled(inner) => Error::Unhandled(inner),
130 }
131 }
132}
133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError, R>> for Error
134where
135 R: Send + Sync + std::fmt::Debug + 'static,
136{
137 fn from(
138 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError, R>,
139 ) -> Self {
140 match err {
141 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
142 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
143 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
144 source: err.into(),
145 }),
146 }
147 }
148}
149impl From<crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError> for Error {
150 fn from(err: crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError) -> Self {
151 match err {
152 crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError::ConflictException(inner) => Error::ConflictException(inner),
153 crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError::ResourceNotFoundException(inner) => {
154 Error::ResourceNotFoundException(inner)
155 }
156 crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError::AccessDeniedException(inner) => {
157 Error::AccessDeniedException(inner)
158 }
159 crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError::InternalServerException(inner) => {
160 Error::InternalServerException(inner)
161 }
162 crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError::ThrottlingException(inner) => Error::ThrottlingException(inner),
163 crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError::ValidationException(inner) => Error::ValidationException(inner),
164 crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError::Unhandled(inner) => Error::Unhandled(inner),
165 }
166 }
167}
168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_curation_policy::AssociateCurationPolicyError, R>>
169 for Error
170where
171 R: Send + Sync + std::fmt::Debug + 'static,
172{
173 fn from(
174 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_curation_policy::AssociateCurationPolicyError, R>,
175 ) -> Self {
176 match err {
177 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
178 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
179 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
180 source: err.into(),
181 }),
182 }
183 }
184}
185impl From<crate::operation::associate_curation_policy::AssociateCurationPolicyError> for Error {
186 fn from(err: crate::operation::associate_curation_policy::AssociateCurationPolicyError) -> Self {
187 match err {
188 crate::operation::associate_curation_policy::AssociateCurationPolicyError::ConflictException(inner) => Error::ConflictException(inner),
189 crate::operation::associate_curation_policy::AssociateCurationPolicyError::ResourceNotFoundException(inner) => {
190 Error::ResourceNotFoundException(inner)
191 }
192 crate::operation::associate_curation_policy::AssociateCurationPolicyError::AccessDeniedException(inner) => {
193 Error::AccessDeniedException(inner)
194 }
195 crate::operation::associate_curation_policy::AssociateCurationPolicyError::InternalServerException(inner) => {
196 Error::InternalServerException(inner)
197 }
198 crate::operation::associate_curation_policy::AssociateCurationPolicyError::ThrottlingException(inner) => {
199 Error::ThrottlingException(inner)
200 }
201 crate::operation::associate_curation_policy::AssociateCurationPolicyError::ValidationException(inner) => {
202 Error::ValidationException(inner)
203 }
204 crate::operation::associate_curation_policy::AssociateCurationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
205 }
206 }
207}
208impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_ontology_induction::CancelOntologyInductionError, R>>
209 for Error
210where
211 R: Send + Sync + std::fmt::Debug + 'static,
212{
213 fn from(
214 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_ontology_induction::CancelOntologyInductionError, R>,
215 ) -> Self {
216 match err {
217 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
218 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
219 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
220 source: err.into(),
221 }),
222 }
223 }
224}
225impl From<crate::operation::cancel_ontology_induction::CancelOntologyInductionError> for Error {
226 fn from(err: crate::operation::cancel_ontology_induction::CancelOntologyInductionError) -> Self {
227 match err {
228 crate::operation::cancel_ontology_induction::CancelOntologyInductionError::ConflictException(inner) => Error::ConflictException(inner),
229 crate::operation::cancel_ontology_induction::CancelOntologyInductionError::ResourceNotFoundException(inner) => {
230 Error::ResourceNotFoundException(inner)
231 }
232 crate::operation::cancel_ontology_induction::CancelOntologyInductionError::AccessDeniedException(inner) => {
233 Error::AccessDeniedException(inner)
234 }
235 crate::operation::cancel_ontology_induction::CancelOntologyInductionError::InternalServerException(inner) => {
236 Error::InternalServerException(inner)
237 }
238 crate::operation::cancel_ontology_induction::CancelOntologyInductionError::ThrottlingException(inner) => {
239 Error::ThrottlingException(inner)
240 }
241 crate::operation::cancel_ontology_induction::CancelOntologyInductionError::ValidationException(inner) => {
242 Error::ValidationException(inner)
243 }
244 crate::operation::cancel_ontology_induction::CancelOntologyInductionError::Unhandled(inner) => Error::Unhandled(inner),
245 }
246 }
247}
248impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_task::CancelTaskError, R>> for Error
249where
250 R: Send + Sync + std::fmt::Debug + 'static,
251{
252 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_task::CancelTaskError, R>) -> Self {
253 match err {
254 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
255 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
256 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
257 source: err.into(),
258 }),
259 }
260 }
261}
262impl From<crate::operation::cancel_task::CancelTaskError> for Error {
263 fn from(err: crate::operation::cancel_task::CancelTaskError) -> Self {
264 match err {
265 crate::operation::cancel_task::CancelTaskError::ConflictException(inner) => Error::ConflictException(inner),
266 crate::operation::cancel_task::CancelTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
267 crate::operation::cancel_task::CancelTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
268 crate::operation::cancel_task::CancelTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
269 crate::operation::cancel_task::CancelTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
270 crate::operation::cancel_task::CancelTaskError::ValidationException(inner) => Error::ValidationException(inner),
271 crate::operation::cancel_task::CancelTaskError::Unhandled(inner) => Error::Unhandled(inner),
272 }
273 }
274}
275impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_context::CreateAgentContextError, R>> for Error
276where
277 R: Send + Sync + std::fmt::Debug + 'static,
278{
279 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_context::CreateAgentContextError, R>) -> Self {
280 match err {
281 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
282 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
283 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
284 source: err.into(),
285 }),
286 }
287 }
288}
289impl From<crate::operation::create_agent_context::CreateAgentContextError> for Error {
290 fn from(err: crate::operation::create_agent_context::CreateAgentContextError) -> Self {
291 match err {
292 crate::operation::create_agent_context::CreateAgentContextError::ConflictException(inner) => Error::ConflictException(inner),
293 crate::operation::create_agent_context::CreateAgentContextError::ResourceNotFoundException(inner) => {
294 Error::ResourceNotFoundException(inner)
295 }
296 crate::operation::create_agent_context::CreateAgentContextError::ServiceQuotaExceededException(inner) => {
297 Error::ServiceQuotaExceededException(inner)
298 }
299 crate::operation::create_agent_context::CreateAgentContextError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
300 crate::operation::create_agent_context::CreateAgentContextError::InternalServerException(inner) => Error::InternalServerException(inner),
301 crate::operation::create_agent_context::CreateAgentContextError::ThrottlingException(inner) => Error::ThrottlingException(inner),
302 crate::operation::create_agent_context::CreateAgentContextError::ValidationException(inner) => Error::ValidationException(inner),
303 crate::operation::create_agent_context::CreateAgentContextError::Unhandled(inner) => Error::Unhandled(inner),
304 }
305 }
306}
307impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_change_set::CreateChangeSetError, R>> for Error
308where
309 R: Send + Sync + std::fmt::Debug + 'static,
310{
311 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_change_set::CreateChangeSetError, R>) -> Self {
312 match err {
313 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
314 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
315 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
316 source: err.into(),
317 }),
318 }
319 }
320}
321impl From<crate::operation::create_change_set::CreateChangeSetError> for Error {
322 fn from(err: crate::operation::create_change_set::CreateChangeSetError) -> Self {
323 match err {
324 crate::operation::create_change_set::CreateChangeSetError::ConflictException(inner) => Error::ConflictException(inner),
325 crate::operation::create_change_set::CreateChangeSetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
326 crate::operation::create_change_set::CreateChangeSetError::ServiceQuotaExceededException(inner) => {
327 Error::ServiceQuotaExceededException(inner)
328 }
329 crate::operation::create_change_set::CreateChangeSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
330 crate::operation::create_change_set::CreateChangeSetError::InternalServerException(inner) => Error::InternalServerException(inner),
331 crate::operation::create_change_set::CreateChangeSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
332 crate::operation::create_change_set::CreateChangeSetError::ValidationException(inner) => Error::ValidationException(inner),
333 crate::operation::create_change_set::CreateChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
334 }
335 }
336}
337impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>> for Error
338where
339 R: Send + Sync + std::fmt::Debug + 'static,
340{
341 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>) -> Self {
342 match err {
343 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
344 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
345 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
346 source: err.into(),
347 }),
348 }
349 }
350}
351impl From<crate::operation::create_connection::CreateConnectionError> for Error {
352 fn from(err: crate::operation::create_connection::CreateConnectionError) -> Self {
353 match err {
354 crate::operation::create_connection::CreateConnectionError::ConflictException(inner) => Error::ConflictException(inner),
355 crate::operation::create_connection::CreateConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
356 crate::operation::create_connection::CreateConnectionError::ServiceQuotaExceededException(inner) => {
357 Error::ServiceQuotaExceededException(inner)
358 }
359 crate::operation::create_connection::CreateConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
360 crate::operation::create_connection::CreateConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
361 crate::operation::create_connection::CreateConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
362 crate::operation::create_connection::CreateConnectionError::ValidationException(inner) => Error::ValidationException(inner),
363 crate::operation::create_connection::CreateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
364 }
365 }
366}
367impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_curation_policy::CreateCurationPolicyError, R>> for Error
368where
369 R: Send + Sync + std::fmt::Debug + 'static,
370{
371 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_curation_policy::CreateCurationPolicyError, R>) -> Self {
372 match err {
373 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
374 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
375 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
376 source: err.into(),
377 }),
378 }
379 }
380}
381impl From<crate::operation::create_curation_policy::CreateCurationPolicyError> for Error {
382 fn from(err: crate::operation::create_curation_policy::CreateCurationPolicyError) -> Self {
383 match err {
384 crate::operation::create_curation_policy::CreateCurationPolicyError::ConflictException(inner) => Error::ConflictException(inner),
385 crate::operation::create_curation_policy::CreateCurationPolicyError::ServiceQuotaExceededException(inner) => {
386 Error::ServiceQuotaExceededException(inner)
387 }
388 crate::operation::create_curation_policy::CreateCurationPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
389 crate::operation::create_curation_policy::CreateCurationPolicyError::InternalServerException(inner) => {
390 Error::InternalServerException(inner)
391 }
392 crate::operation::create_curation_policy::CreateCurationPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
393 crate::operation::create_curation_policy::CreateCurationPolicyError::ValidationException(inner) => Error::ValidationException(inner),
394 crate::operation::create_curation_policy::CreateCurationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
395 }
396 }
397}
398impl<R>
399 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError, R>>
400 for Error
401where
402 R: Send + Sync + std::fmt::Debug + 'static,
403{
404 fn from(
405 err: ::aws_smithy_runtime_api::client::result::SdkError<
406 crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError,
407 R,
408 >,
409 ) -> Self {
410 match err {
411 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
412 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
413 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
414 source: err.into(),
415 }),
416 }
417 }
418}
419impl From<crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError> for Error {
420 fn from(err: crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError) -> Self {
421 match err {
422 crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::ConflictException(inner) => {
423 Error::ConflictException(inner)
424 }
425 crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::ResourceNotFoundException(inner) => {
426 Error::ResourceNotFoundException(inner)
427 }
428 crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::ServiceQuotaExceededException(inner) => {
429 Error::ServiceQuotaExceededException(inner)
430 }
431 crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::AccessDeniedException(inner) => {
432 Error::AccessDeniedException(inner)
433 }
434 crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::InternalServerException(inner) => {
435 Error::InternalServerException(inner)
436 }
437 crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::ThrottlingException(inner) => {
438 Error::ThrottlingException(inner)
439 }
440 crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::ValidationException(inner) => {
441 Error::ValidationException(inner)
442 }
443 crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::Unhandled(inner) => Error::Unhandled(inner),
444 }
445 }
446}
447impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ontology::CreateOntologyError, R>> for Error
448where
449 R: Send + Sync + std::fmt::Debug + 'static,
450{
451 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ontology::CreateOntologyError, R>) -> Self {
452 match err {
453 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
454 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
455 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
456 source: err.into(),
457 }),
458 }
459 }
460}
461impl From<crate::operation::create_ontology::CreateOntologyError> for Error {
462 fn from(err: crate::operation::create_ontology::CreateOntologyError) -> Self {
463 match err {
464 crate::operation::create_ontology::CreateOntologyError::ConflictException(inner) => Error::ConflictException(inner),
465 crate::operation::create_ontology::CreateOntologyError::ServiceQuotaExceededException(inner) => {
466 Error::ServiceQuotaExceededException(inner)
467 }
468 crate::operation::create_ontology::CreateOntologyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
469 crate::operation::create_ontology::CreateOntologyError::InternalServerException(inner) => Error::InternalServerException(inner),
470 crate::operation::create_ontology::CreateOntologyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
471 crate::operation::create_ontology::CreateOntologyError::ValidationException(inner) => Error::ValidationException(inner),
472 crate::operation::create_ontology::CreateOntologyError::Unhandled(inner) => Error::Unhandled(inner),
473 }
474 }
475}
476impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent_context::DeleteAgentContextError, R>> for Error
477where
478 R: Send + Sync + std::fmt::Debug + 'static,
479{
480 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent_context::DeleteAgentContextError, R>) -> Self {
481 match err {
482 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
483 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
484 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
485 source: err.into(),
486 }),
487 }
488 }
489}
490impl From<crate::operation::delete_agent_context::DeleteAgentContextError> for Error {
491 fn from(err: crate::operation::delete_agent_context::DeleteAgentContextError) -> Self {
492 match err {
493 crate::operation::delete_agent_context::DeleteAgentContextError::ConflictException(inner) => Error::ConflictException(inner),
494 crate::operation::delete_agent_context::DeleteAgentContextError::ResourceNotFoundException(inner) => {
495 Error::ResourceNotFoundException(inner)
496 }
497 crate::operation::delete_agent_context::DeleteAgentContextError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
498 crate::operation::delete_agent_context::DeleteAgentContextError::InternalServerException(inner) => Error::InternalServerException(inner),
499 crate::operation::delete_agent_context::DeleteAgentContextError::ThrottlingException(inner) => Error::ThrottlingException(inner),
500 crate::operation::delete_agent_context::DeleteAgentContextError::ValidationException(inner) => Error::ValidationException(inner),
501 crate::operation::delete_agent_context::DeleteAgentContextError::Unhandled(inner) => Error::Unhandled(inner),
502 }
503 }
504}
505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>> for Error
506where
507 R: Send + Sync + std::fmt::Debug + 'static,
508{
509 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>) -> Self {
510 match err {
511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
514 source: err.into(),
515 }),
516 }
517 }
518}
519impl From<crate::operation::delete_connection::DeleteConnectionError> for Error {
520 fn from(err: crate::operation::delete_connection::DeleteConnectionError) -> Self {
521 match err {
522 crate::operation::delete_connection::DeleteConnectionError::ConflictException(inner) => Error::ConflictException(inner),
523 crate::operation::delete_connection::DeleteConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
524 crate::operation::delete_connection::DeleteConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
525 crate::operation::delete_connection::DeleteConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
526 crate::operation::delete_connection::DeleteConnectionError::ValidationException(inner) => Error::ValidationException(inner),
527 crate::operation::delete_connection::DeleteConnectionError::Unhandled(inner) => Error::Unhandled(inner),
528 }
529 }
530}
531impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_curation_policy::DeleteCurationPolicyError, R>> for Error
532where
533 R: Send + Sync + std::fmt::Debug + 'static,
534{
535 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_curation_policy::DeleteCurationPolicyError, R>) -> Self {
536 match err {
537 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
538 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
539 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
540 source: err.into(),
541 }),
542 }
543 }
544}
545impl From<crate::operation::delete_curation_policy::DeleteCurationPolicyError> for Error {
546 fn from(err: crate::operation::delete_curation_policy::DeleteCurationPolicyError) -> Self {
547 match err {
548 crate::operation::delete_curation_policy::DeleteCurationPolicyError::ConflictException(inner) => Error::ConflictException(inner),
549 crate::operation::delete_curation_policy::DeleteCurationPolicyError::ResourceNotFoundException(inner) => {
550 Error::ResourceNotFoundException(inner)
551 }
552 crate::operation::delete_curation_policy::DeleteCurationPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
553 crate::operation::delete_curation_policy::DeleteCurationPolicyError::InternalServerException(inner) => {
554 Error::InternalServerException(inner)
555 }
556 crate::operation::delete_curation_policy::DeleteCurationPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
557 crate::operation::delete_curation_policy::DeleteCurationPolicyError::ValidationException(inner) => Error::ValidationException(inner),
558 crate::operation::delete_curation_policy::DeleteCurationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
559 }
560 }
561}
562impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ontology::DeleteOntologyError, R>> for Error
563where
564 R: Send + Sync + std::fmt::Debug + 'static,
565{
566 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ontology::DeleteOntologyError, R>) -> Self {
567 match err {
568 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
569 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
570 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
571 source: err.into(),
572 }),
573 }
574 }
575}
576impl From<crate::operation::delete_ontology::DeleteOntologyError> for Error {
577 fn from(err: crate::operation::delete_ontology::DeleteOntologyError) -> Self {
578 match err {
579 crate::operation::delete_ontology::DeleteOntologyError::ConflictException(inner) => Error::ConflictException(inner),
580 crate::operation::delete_ontology::DeleteOntologyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
581 crate::operation::delete_ontology::DeleteOntologyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
582 crate::operation::delete_ontology::DeleteOntologyError::InternalServerException(inner) => Error::InternalServerException(inner),
583 crate::operation::delete_ontology::DeleteOntologyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
584 crate::operation::delete_ontology::DeleteOntologyError::ValidationException(inner) => Error::ValidationException(inner),
585 crate::operation::delete_ontology::DeleteOntologyError::Unhandled(inner) => Error::Unhandled(inner),
586 }
587 }
588}
589impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ontology_induction::DeleteOntologyInductionError, R>>
590 for Error
591where
592 R: Send + Sync + std::fmt::Debug + 'static,
593{
594 fn from(
595 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ontology_induction::DeleteOntologyInductionError, R>,
596 ) -> Self {
597 match err {
598 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
599 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
600 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
601 source: err.into(),
602 }),
603 }
604 }
605}
606impl From<crate::operation::delete_ontology_induction::DeleteOntologyInductionError> for Error {
607 fn from(err: crate::operation::delete_ontology_induction::DeleteOntologyInductionError) -> Self {
608 match err {
609 crate::operation::delete_ontology_induction::DeleteOntologyInductionError::ConflictException(inner) => Error::ConflictException(inner),
610 crate::operation::delete_ontology_induction::DeleteOntologyInductionError::ResourceNotFoundException(inner) => {
611 Error::ResourceNotFoundException(inner)
612 }
613 crate::operation::delete_ontology_induction::DeleteOntologyInductionError::AccessDeniedException(inner) => {
614 Error::AccessDeniedException(inner)
615 }
616 crate::operation::delete_ontology_induction::DeleteOntologyInductionError::InternalServerException(inner) => {
617 Error::InternalServerException(inner)
618 }
619 crate::operation::delete_ontology_induction::DeleteOntologyInductionError::ThrottlingException(inner) => {
620 Error::ThrottlingException(inner)
621 }
622 crate::operation::delete_ontology_induction::DeleteOntologyInductionError::ValidationException(inner) => {
623 Error::ValidationException(inner)
624 }
625 crate::operation::delete_ontology_induction::DeleteOntologyInductionError::Unhandled(inner) => Error::Unhandled(inner),
626 }
627 }
628}
629impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
630where
631 R: Send + Sync + std::fmt::Debug + 'static,
632{
633 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
634 match err {
635 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
636 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
637 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
638 source: err.into(),
639 }),
640 }
641 }
642}
643impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
644 fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
645 match err {
646 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
647 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
648 Error::ResourceNotFoundException(inner)
649 }
650 crate::operation::delete_resource_policy::DeleteResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
651 crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
652 Error::InternalServerException(inner)
653 }
654 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
655 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
656 crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
657 }
658 }
659}
660impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError, R>>
661 for Error
662where
663 R: Send + Sync + std::fmt::Debug + 'static,
664{
665 fn from(
666 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError, R>,
667 ) -> Self {
668 match err {
669 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
670 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
671 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
672 source: err.into(),
673 }),
674 }
675 }
676}
677impl From<crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError> for Error {
678 fn from(err: crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError) -> Self {
679 match err {
680 crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError::ResourceNotFoundException(inner) => {
681 Error::ResourceNotFoundException(inner)
682 }
683 crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError::AccessDeniedException(inner) => {
684 Error::AccessDeniedException(inner)
685 }
686 crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError::InternalServerException(inner) => {
687 Error::InternalServerException(inner)
688 }
689 crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError::ThrottlingException(inner) => {
690 Error::ThrottlingException(inner)
691 }
692 crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError::ValidationException(inner) => {
693 Error::ValidationException(inner)
694 }
695 crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
696 }
697 }
698}
699impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_sql::ExecuteSqlError, R>> for Error
700where
701 R: Send + Sync + std::fmt::Debug + 'static,
702{
703 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_sql::ExecuteSqlError, R>) -> Self {
704 match err {
705 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
706 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
707 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
708 source: err.into(),
709 }),
710 }
711 }
712}
713impl From<crate::operation::execute_sql::ExecuteSqlError> for Error {
714 fn from(err: crate::operation::execute_sql::ExecuteSqlError) -> Self {
715 match err {
716 crate::operation::execute_sql::ExecuteSqlError::ConflictException(inner) => Error::ConflictException(inner),
717 crate::operation::execute_sql::ExecuteSqlError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
718 crate::operation::execute_sql::ExecuteSqlError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
719 crate::operation::execute_sql::ExecuteSqlError::InternalServerException(inner) => Error::InternalServerException(inner),
720 crate::operation::execute_sql::ExecuteSqlError::ThrottlingException(inner) => Error::ThrottlingException(inner),
721 crate::operation::execute_sql::ExecuteSqlError::ValidationException(inner) => Error::ValidationException(inner),
722 crate::operation::execute_sql::ExecuteSqlError::Unhandled(inner) => Error::Unhandled(inner),
723 }
724 }
725}
726impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_agent_context::GetAgentContextError, R>> for Error
727where
728 R: Send + Sync + std::fmt::Debug + 'static,
729{
730 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_agent_context::GetAgentContextError, R>) -> Self {
731 match err {
732 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
733 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
734 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
735 source: err.into(),
736 }),
737 }
738 }
739}
740impl From<crate::operation::get_agent_context::GetAgentContextError> for Error {
741 fn from(err: crate::operation::get_agent_context::GetAgentContextError) -> Self {
742 match err {
743 crate::operation::get_agent_context::GetAgentContextError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
744 crate::operation::get_agent_context::GetAgentContextError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
745 crate::operation::get_agent_context::GetAgentContextError::InternalServerException(inner) => Error::InternalServerException(inner),
746 crate::operation::get_agent_context::GetAgentContextError::ThrottlingException(inner) => Error::ThrottlingException(inner),
747 crate::operation::get_agent_context::GetAgentContextError::ValidationException(inner) => Error::ValidationException(inner),
748 crate::operation::get_agent_context::GetAgentContextError::Unhandled(inner) => Error::Unhandled(inner),
749 }
750 }
751}
752impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_change_set::GetChangeSetError, R>> for Error
753where
754 R: Send + Sync + std::fmt::Debug + 'static,
755{
756 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_change_set::GetChangeSetError, R>) -> 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_change_set::GetChangeSetError> for Error {
767 fn from(err: crate::operation::get_change_set::GetChangeSetError) -> Self {
768 match err {
769 crate::operation::get_change_set::GetChangeSetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
770 crate::operation::get_change_set::GetChangeSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
771 crate::operation::get_change_set::GetChangeSetError::InternalServerException(inner) => Error::InternalServerException(inner),
772 crate::operation::get_change_set::GetChangeSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
773 crate::operation::get_change_set::GetChangeSetError::ValidationException(inner) => Error::ValidationException(inner),
774 crate::operation::get_change_set::GetChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
775 }
776 }
777}
778impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connection::GetConnectionError, R>> for Error
779where
780 R: Send + Sync + std::fmt::Debug + 'static,
781{
782 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connection::GetConnectionError, R>) -> Self {
783 match err {
784 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
785 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
786 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
787 source: err.into(),
788 }),
789 }
790 }
791}
792impl From<crate::operation::get_connection::GetConnectionError> for Error {
793 fn from(err: crate::operation::get_connection::GetConnectionError) -> Self {
794 match err {
795 crate::operation::get_connection::GetConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
796 crate::operation::get_connection::GetConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
797 crate::operation::get_connection::GetConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
798 crate::operation::get_connection::GetConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
799 crate::operation::get_connection::GetConnectionError::ValidationException(inner) => Error::ValidationException(inner),
800 crate::operation::get_connection::GetConnectionError::Unhandled(inner) => Error::Unhandled(inner),
801 }
802 }
803}
804impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_curation_policy::GetCurationPolicyError, R>> for Error
805where
806 R: Send + Sync + std::fmt::Debug + 'static,
807{
808 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_curation_policy::GetCurationPolicyError, R>) -> Self {
809 match err {
810 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
811 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
812 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
813 source: err.into(),
814 }),
815 }
816 }
817}
818impl From<crate::operation::get_curation_policy::GetCurationPolicyError> for Error {
819 fn from(err: crate::operation::get_curation_policy::GetCurationPolicyError) -> Self {
820 match err {
821 crate::operation::get_curation_policy::GetCurationPolicyError::ResourceNotFoundException(inner) => {
822 Error::ResourceNotFoundException(inner)
823 }
824 crate::operation::get_curation_policy::GetCurationPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
825 crate::operation::get_curation_policy::GetCurationPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
826 crate::operation::get_curation_policy::GetCurationPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
827 crate::operation::get_curation_policy::GetCurationPolicyError::ValidationException(inner) => Error::ValidationException(inner),
828 crate::operation::get_curation_policy::GetCurationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
829 }
830 }
831}
832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_curation_proposal::GetCurationProposalError, R>> for Error
833where
834 R: Send + Sync + std::fmt::Debug + 'static,
835{
836 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_curation_proposal::GetCurationProposalError, R>) -> Self {
837 match err {
838 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
839 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
840 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
841 source: err.into(),
842 }),
843 }
844 }
845}
846impl From<crate::operation::get_curation_proposal::GetCurationProposalError> for Error {
847 fn from(err: crate::operation::get_curation_proposal::GetCurationProposalError) -> Self {
848 match err {
849 crate::operation::get_curation_proposal::GetCurationProposalError::ResourceNotFoundException(inner) => {
850 Error::ResourceNotFoundException(inner)
851 }
852 crate::operation::get_curation_proposal::GetCurationProposalError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
853 crate::operation::get_curation_proposal::GetCurationProposalError::InternalServerException(inner) => {
854 Error::InternalServerException(inner)
855 }
856 crate::operation::get_curation_proposal::GetCurationProposalError::ThrottlingException(inner) => Error::ThrottlingException(inner),
857 crate::operation::get_curation_proposal::GetCurationProposalError::ValidationException(inner) => Error::ValidationException(inner),
858 crate::operation::get_curation_proposal::GetCurationProposalError::Unhandled(inner) => Error::Unhandled(inner),
859 }
860 }
861}
862impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ontology::GetOntologyError, R>> for Error
863where
864 R: Send + Sync + std::fmt::Debug + 'static,
865{
866 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ontology::GetOntologyError, R>) -> Self {
867 match err {
868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
871 source: err.into(),
872 }),
873 }
874 }
875}
876impl From<crate::operation::get_ontology::GetOntologyError> for Error {
877 fn from(err: crate::operation::get_ontology::GetOntologyError) -> Self {
878 match err {
879 crate::operation::get_ontology::GetOntologyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
880 crate::operation::get_ontology::GetOntologyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
881 crate::operation::get_ontology::GetOntologyError::InternalServerException(inner) => Error::InternalServerException(inner),
882 crate::operation::get_ontology::GetOntologyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
883 crate::operation::get_ontology::GetOntologyError::ValidationException(inner) => Error::ValidationException(inner),
884 crate::operation::get_ontology::GetOntologyError::Unhandled(inner) => Error::Unhandled(inner),
885 }
886 }
887}
888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ontology_induction::GetOntologyInductionError, R>> for Error
889where
890 R: Send + Sync + std::fmt::Debug + 'static,
891{
892 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ontology_induction::GetOntologyInductionError, R>) -> Self {
893 match err {
894 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
895 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
896 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
897 source: err.into(),
898 }),
899 }
900 }
901}
902impl From<crate::operation::get_ontology_induction::GetOntologyInductionError> for Error {
903 fn from(err: crate::operation::get_ontology_induction::GetOntologyInductionError) -> Self {
904 match err {
905 crate::operation::get_ontology_induction::GetOntologyInductionError::ResourceNotFoundException(inner) => {
906 Error::ResourceNotFoundException(inner)
907 }
908 crate::operation::get_ontology_induction::GetOntologyInductionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
909 crate::operation::get_ontology_induction::GetOntologyInductionError::InternalServerException(inner) => {
910 Error::InternalServerException(inner)
911 }
912 crate::operation::get_ontology_induction::GetOntologyInductionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
913 crate::operation::get_ontology_induction::GetOntologyInductionError::ValidationException(inner) => Error::ValidationException(inner),
914 crate::operation::get_ontology_induction::GetOntologyInductionError::Unhandled(inner) => Error::Unhandled(inner),
915 }
916 }
917}
918impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
919where
920 R: Send + Sync + std::fmt::Debug + 'static,
921{
922 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
923 match err {
924 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
925 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
926 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
927 source: err.into(),
928 }),
929 }
930 }
931}
932impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
933 fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
934 match err {
935 crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => {
936 Error::ResourceNotFoundException(inner)
937 }
938 crate::operation::get_resource_policy::GetResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
939 crate::operation::get_resource_policy::GetResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
940 crate::operation::get_resource_policy::GetResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
941 crate::operation::get_resource_policy::GetResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
942 crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
943 }
944 }
945}
946impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_task::GetTaskError, R>> for Error
947where
948 R: Send + Sync + std::fmt::Debug + 'static,
949{
950 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_task::GetTaskError, R>) -> Self {
951 match err {
952 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
953 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
954 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
955 source: err.into(),
956 }),
957 }
958 }
959}
960impl From<crate::operation::get_task::GetTaskError> for Error {
961 fn from(err: crate::operation::get_task::GetTaskError) -> Self {
962 match err {
963 crate::operation::get_task::GetTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
964 crate::operation::get_task::GetTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
965 crate::operation::get_task::GetTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
966 crate::operation::get_task::GetTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
967 crate::operation::get_task::GetTaskError::ValidationException(inner) => Error::ValidationException(inner),
968 crate::operation::get_task::GetTaskError::Unhandled(inner) => Error::Unhandled(inner),
969 }
970 }
971}
972impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_contexts::ListAgentContextsError, R>> for Error
973where
974 R: Send + Sync + std::fmt::Debug + 'static,
975{
976 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_contexts::ListAgentContextsError, R>) -> Self {
977 match err {
978 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
979 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
980 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
981 source: err.into(),
982 }),
983 }
984 }
985}
986impl From<crate::operation::list_agent_contexts::ListAgentContextsError> for Error {
987 fn from(err: crate::operation::list_agent_contexts::ListAgentContextsError) -> Self {
988 match err {
989 crate::operation::list_agent_contexts::ListAgentContextsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
990 crate::operation::list_agent_contexts::ListAgentContextsError::InternalServerException(inner) => Error::InternalServerException(inner),
991 crate::operation::list_agent_contexts::ListAgentContextsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
992 crate::operation::list_agent_contexts::ListAgentContextsError::ValidationException(inner) => Error::ValidationException(inner),
993 crate::operation::list_agent_contexts::ListAgentContextsError::Unhandled(inner) => Error::Unhandled(inner),
994 }
995 }
996}
997impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_change_set_operations::ListChangeSetOperationsError, R>>
998 for Error
999where
1000 R: Send + Sync + std::fmt::Debug + 'static,
1001{
1002 fn from(
1003 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_change_set_operations::ListChangeSetOperationsError, R>,
1004 ) -> Self {
1005 match err {
1006 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1007 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1008 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1009 source: err.into(),
1010 }),
1011 }
1012 }
1013}
1014impl From<crate::operation::list_change_set_operations::ListChangeSetOperationsError> for Error {
1015 fn from(err: crate::operation::list_change_set_operations::ListChangeSetOperationsError) -> Self {
1016 match err {
1017 crate::operation::list_change_set_operations::ListChangeSetOperationsError::ResourceNotFoundException(inner) => {
1018 Error::ResourceNotFoundException(inner)
1019 }
1020 crate::operation::list_change_set_operations::ListChangeSetOperationsError::AccessDeniedException(inner) => {
1021 Error::AccessDeniedException(inner)
1022 }
1023 crate::operation::list_change_set_operations::ListChangeSetOperationsError::InternalServerException(inner) => {
1024 Error::InternalServerException(inner)
1025 }
1026 crate::operation::list_change_set_operations::ListChangeSetOperationsError::ThrottlingException(inner) => {
1027 Error::ThrottlingException(inner)
1028 }
1029 crate::operation::list_change_set_operations::ListChangeSetOperationsError::ValidationException(inner) => {
1030 Error::ValidationException(inner)
1031 }
1032 crate::operation::list_change_set_operations::ListChangeSetOperationsError::Unhandled(inner) => Error::Unhandled(inner),
1033 }
1034 }
1035}
1036impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_change_sets::ListChangeSetsError, R>> for Error
1037where
1038 R: Send + Sync + std::fmt::Debug + 'static,
1039{
1040 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_change_sets::ListChangeSetsError, R>) -> Self {
1041 match err {
1042 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1043 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1044 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1045 source: err.into(),
1046 }),
1047 }
1048 }
1049}
1050impl From<crate::operation::list_change_sets::ListChangeSetsError> for Error {
1051 fn from(err: crate::operation::list_change_sets::ListChangeSetsError) -> Self {
1052 match err {
1053 crate::operation::list_change_sets::ListChangeSetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1054 crate::operation::list_change_sets::ListChangeSetsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1055 crate::operation::list_change_sets::ListChangeSetsError::InternalServerException(inner) => Error::InternalServerException(inner),
1056 crate::operation::list_change_sets::ListChangeSetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1057 crate::operation::list_change_sets::ListChangeSetsError::ValidationException(inner) => Error::ValidationException(inner),
1058 crate::operation::list_change_sets::ListChangeSetsError::Unhandled(inner) => Error::Unhandled(inner),
1059 }
1060 }
1061}
1062impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connections::ListConnectionsError, R>> for Error
1063where
1064 R: Send + Sync + std::fmt::Debug + 'static,
1065{
1066 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connections::ListConnectionsError, R>) -> Self {
1067 match err {
1068 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1069 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1070 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1071 source: err.into(),
1072 }),
1073 }
1074 }
1075}
1076impl From<crate::operation::list_connections::ListConnectionsError> for Error {
1077 fn from(err: crate::operation::list_connections::ListConnectionsError) -> Self {
1078 match err {
1079 crate::operation::list_connections::ListConnectionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1080 crate::operation::list_connections::ListConnectionsError::InternalServerException(inner) => Error::InternalServerException(inner),
1081 crate::operation::list_connections::ListConnectionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1082 crate::operation::list_connections::ListConnectionsError::ValidationException(inner) => Error::ValidationException(inner),
1083 crate::operation::list_connections::ListConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
1084 }
1085 }
1086}
1087impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_curation_policies::ListCurationPoliciesError, R>> for Error
1088where
1089 R: Send + Sync + std::fmt::Debug + 'static,
1090{
1091 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_curation_policies::ListCurationPoliciesError, R>) -> Self {
1092 match err {
1093 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1094 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1095 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1096 source: err.into(),
1097 }),
1098 }
1099 }
1100}
1101impl From<crate::operation::list_curation_policies::ListCurationPoliciesError> for Error {
1102 fn from(err: crate::operation::list_curation_policies::ListCurationPoliciesError) -> Self {
1103 match err {
1104 crate::operation::list_curation_policies::ListCurationPoliciesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1105 crate::operation::list_curation_policies::ListCurationPoliciesError::InternalServerException(inner) => {
1106 Error::InternalServerException(inner)
1107 }
1108 crate::operation::list_curation_policies::ListCurationPoliciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1109 crate::operation::list_curation_policies::ListCurationPoliciesError::ValidationException(inner) => Error::ValidationException(inner),
1110 crate::operation::list_curation_policies::ListCurationPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1111 }
1112 }
1113}
1114impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_curation_proposals::ListCurationProposalsError, R>> for Error
1115where
1116 R: Send + Sync + std::fmt::Debug + 'static,
1117{
1118 fn from(
1119 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_curation_proposals::ListCurationProposalsError, R>,
1120 ) -> Self {
1121 match err {
1122 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1123 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1124 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1125 source: err.into(),
1126 }),
1127 }
1128 }
1129}
1130impl From<crate::operation::list_curation_proposals::ListCurationProposalsError> for Error {
1131 fn from(err: crate::operation::list_curation_proposals::ListCurationProposalsError) -> Self {
1132 match err {
1133 crate::operation::list_curation_proposals::ListCurationProposalsError::ResourceNotFoundException(inner) => {
1134 Error::ResourceNotFoundException(inner)
1135 }
1136 crate::operation::list_curation_proposals::ListCurationProposalsError::AccessDeniedException(inner) => {
1137 Error::AccessDeniedException(inner)
1138 }
1139 crate::operation::list_curation_proposals::ListCurationProposalsError::InternalServerException(inner) => {
1140 Error::InternalServerException(inner)
1141 }
1142 crate::operation::list_curation_proposals::ListCurationProposalsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1143 crate::operation::list_curation_proposals::ListCurationProposalsError::ValidationException(inner) => Error::ValidationException(inner),
1144 crate::operation::list_curation_proposals::ListCurationProposalsError::Unhandled(inner) => Error::Unhandled(inner),
1145 }
1146 }
1147}
1148impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ontologies::ListOntologiesError, R>> for Error
1149where
1150 R: Send + Sync + std::fmt::Debug + 'static,
1151{
1152 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ontologies::ListOntologiesError, R>) -> Self {
1153 match err {
1154 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1155 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1156 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1157 source: err.into(),
1158 }),
1159 }
1160 }
1161}
1162impl From<crate::operation::list_ontologies::ListOntologiesError> for Error {
1163 fn from(err: crate::operation::list_ontologies::ListOntologiesError) -> Self {
1164 match err {
1165 crate::operation::list_ontologies::ListOntologiesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1166 crate::operation::list_ontologies::ListOntologiesError::InternalServerException(inner) => Error::InternalServerException(inner),
1167 crate::operation::list_ontologies::ListOntologiesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1168 crate::operation::list_ontologies::ListOntologiesError::ValidationException(inner) => Error::ValidationException(inner),
1169 crate::operation::list_ontologies::ListOntologiesError::Unhandled(inner) => Error::Unhandled(inner),
1170 }
1171 }
1172}
1173impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ontology_inductions::ListOntologyInductionsError, R>> for Error
1174where
1175 R: Send + Sync + std::fmt::Debug + 'static,
1176{
1177 fn from(
1178 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ontology_inductions::ListOntologyInductionsError, R>,
1179 ) -> Self {
1180 match err {
1181 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1182 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1183 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1184 source: err.into(),
1185 }),
1186 }
1187 }
1188}
1189impl From<crate::operation::list_ontology_inductions::ListOntologyInductionsError> for Error {
1190 fn from(err: crate::operation::list_ontology_inductions::ListOntologyInductionsError) -> Self {
1191 match err {
1192 crate::operation::list_ontology_inductions::ListOntologyInductionsError::AccessDeniedException(inner) => {
1193 Error::AccessDeniedException(inner)
1194 }
1195 crate::operation::list_ontology_inductions::ListOntologyInductionsError::InternalServerException(inner) => {
1196 Error::InternalServerException(inner)
1197 }
1198 crate::operation::list_ontology_inductions::ListOntologyInductionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1199 crate::operation::list_ontology_inductions::ListOntologyInductionsError::ValidationException(inner) => Error::ValidationException(inner),
1200 crate::operation::list_ontology_inductions::ListOntologyInductionsError::Unhandled(inner) => Error::Unhandled(inner),
1201 }
1202 }
1203}
1204impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1205where
1206 R: Send + Sync + std::fmt::Debug + 'static,
1207{
1208 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1209 match err {
1210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1213 source: err.into(),
1214 }),
1215 }
1216 }
1217}
1218impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1219 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1220 match err {
1221 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1222 Error::ResourceNotFoundException(inner)
1223 }
1224 crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1225 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
1226 Error::InternalServerException(inner)
1227 }
1228 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1229 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1230 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1231 }
1232 }
1233}
1234impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tasks::ListTasksError, R>> for Error
1235where
1236 R: Send + Sync + std::fmt::Debug + 'static,
1237{
1238 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tasks::ListTasksError, R>) -> Self {
1239 match err {
1240 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1241 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1242 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1243 source: err.into(),
1244 }),
1245 }
1246 }
1247}
1248impl From<crate::operation::list_tasks::ListTasksError> for Error {
1249 fn from(err: crate::operation::list_tasks::ListTasksError) -> Self {
1250 match err {
1251 crate::operation::list_tasks::ListTasksError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1252 crate::operation::list_tasks::ListTasksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1253 crate::operation::list_tasks::ListTasksError::InternalServerException(inner) => Error::InternalServerException(inner),
1254 crate::operation::list_tasks::ListTasksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1255 crate::operation::list_tasks::ListTasksError::ValidationException(inner) => Error::ValidationException(inner),
1256 crate::operation::list_tasks::ListTasksError::Unhandled(inner) => Error::Unhandled(inner),
1257 }
1258 }
1259}
1260impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
1261where
1262 R: Send + Sync + std::fmt::Debug + 'static,
1263{
1264 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
1265 match err {
1266 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1267 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1268 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1269 source: err.into(),
1270 }),
1271 }
1272 }
1273}
1274impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
1275 fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
1276 match err {
1277 crate::operation::put_resource_policy::PutResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
1278 crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
1279 Error::ResourceNotFoundException(inner)
1280 }
1281 crate::operation::put_resource_policy::PutResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1282 crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
1283 crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1284 crate::operation::put_resource_policy::PutResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1285 crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1286 }
1287 }
1288}
1289impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_trace::PutTraceError, R>> for Error
1290where
1291 R: Send + Sync + std::fmt::Debug + 'static,
1292{
1293 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_trace::PutTraceError, R>) -> Self {
1294 match err {
1295 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1296 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1297 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1298 source: err.into(),
1299 }),
1300 }
1301 }
1302}
1303impl From<crate::operation::put_trace::PutTraceError> for Error {
1304 fn from(err: crate::operation::put_trace::PutTraceError) -> Self {
1305 match err {
1306 crate::operation::put_trace::PutTraceError::ConflictException(inner) => Error::ConflictException(inner),
1307 crate::operation::put_trace::PutTraceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1308 crate::operation::put_trace::PutTraceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1309 crate::operation::put_trace::PutTraceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1310 crate::operation::put_trace::PutTraceError::InternalServerException(inner) => Error::InternalServerException(inner),
1311 crate::operation::put_trace::PutTraceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1312 crate::operation::put_trace::PutTraceError::ValidationException(inner) => Error::ValidationException(inner),
1313 crate::operation::put_trace::PutTraceError::Unhandled(inner) => Error::Unhandled(inner),
1314 }
1315 }
1316}
1317impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_curation_proposal::RejectCurationProposalError, R>> for Error
1318where
1319 R: Send + Sync + std::fmt::Debug + 'static,
1320{
1321 fn from(
1322 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_curation_proposal::RejectCurationProposalError, R>,
1323 ) -> Self {
1324 match err {
1325 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1326 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1327 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1328 source: err.into(),
1329 }),
1330 }
1331 }
1332}
1333impl From<crate::operation::reject_curation_proposal::RejectCurationProposalError> for Error {
1334 fn from(err: crate::operation::reject_curation_proposal::RejectCurationProposalError) -> Self {
1335 match err {
1336 crate::operation::reject_curation_proposal::RejectCurationProposalError::ConflictException(inner) => Error::ConflictException(inner),
1337 crate::operation::reject_curation_proposal::RejectCurationProposalError::ResourceNotFoundException(inner) => {
1338 Error::ResourceNotFoundException(inner)
1339 }
1340 crate::operation::reject_curation_proposal::RejectCurationProposalError::AccessDeniedException(inner) => {
1341 Error::AccessDeniedException(inner)
1342 }
1343 crate::operation::reject_curation_proposal::RejectCurationProposalError::InternalServerException(inner) => {
1344 Error::InternalServerException(inner)
1345 }
1346 crate::operation::reject_curation_proposal::RejectCurationProposalError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1347 crate::operation::reject_curation_proposal::RejectCurationProposalError::ValidationException(inner) => Error::ValidationException(inner),
1348 crate::operation::reject_curation_proposal::RejectCurationProposalError::Unhandled(inner) => Error::Unhandled(inner),
1349 }
1350 }
1351}
1352impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_agent_context::SearchAgentContextError, R>> for Error
1353where
1354 R: Send + Sync + std::fmt::Debug + 'static,
1355{
1356 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_agent_context::SearchAgentContextError, R>) -> Self {
1357 match err {
1358 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1359 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1360 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1361 source: err.into(),
1362 }),
1363 }
1364 }
1365}
1366impl From<crate::operation::search_agent_context::SearchAgentContextError> for Error {
1367 fn from(err: crate::operation::search_agent_context::SearchAgentContextError) -> Self {
1368 match err {
1369 crate::operation::search_agent_context::SearchAgentContextError::ConflictException(inner) => Error::ConflictException(inner),
1370 crate::operation::search_agent_context::SearchAgentContextError::ResourceNotFoundException(inner) => {
1371 Error::ResourceNotFoundException(inner)
1372 }
1373 crate::operation::search_agent_context::SearchAgentContextError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1374 crate::operation::search_agent_context::SearchAgentContextError::InternalServerException(inner) => Error::InternalServerException(inner),
1375 crate::operation::search_agent_context::SearchAgentContextError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1376 crate::operation::search_agent_context::SearchAgentContextError::ValidationException(inner) => Error::ValidationException(inner),
1377 crate::operation::search_agent_context::SearchAgentContextError::Unhandled(inner) => Error::Unhandled(inner),
1378 }
1379 }
1380}
1381impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_ontology_induction::StartOntologyInductionError, R>> for Error
1382where
1383 R: Send + Sync + std::fmt::Debug + 'static,
1384{
1385 fn from(
1386 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_ontology_induction::StartOntologyInductionError, R>,
1387 ) -> Self {
1388 match err {
1389 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1390 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1391 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1392 source: err.into(),
1393 }),
1394 }
1395 }
1396}
1397impl From<crate::operation::start_ontology_induction::StartOntologyInductionError> for Error {
1398 fn from(err: crate::operation::start_ontology_induction::StartOntologyInductionError) -> Self {
1399 match err {
1400 crate::operation::start_ontology_induction::StartOntologyInductionError::ConflictException(inner) => Error::ConflictException(inner),
1401 crate::operation::start_ontology_induction::StartOntologyInductionError::ResourceNotFoundException(inner) => {
1402 Error::ResourceNotFoundException(inner)
1403 }
1404 crate::operation::start_ontology_induction::StartOntologyInductionError::ServiceQuotaExceededException(inner) => {
1405 Error::ServiceQuotaExceededException(inner)
1406 }
1407 crate::operation::start_ontology_induction::StartOntologyInductionError::AccessDeniedException(inner) => {
1408 Error::AccessDeniedException(inner)
1409 }
1410 crate::operation::start_ontology_induction::StartOntologyInductionError::InternalServerException(inner) => {
1411 Error::InternalServerException(inner)
1412 }
1413 crate::operation::start_ontology_induction::StartOntologyInductionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1414 crate::operation::start_ontology_induction::StartOntologyInductionError::ValidationException(inner) => Error::ValidationException(inner),
1415 crate::operation::start_ontology_induction::StartOntologyInductionError::Unhandled(inner) => Error::Unhandled(inner),
1416 }
1417 }
1418}
1419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_task::StartTaskError, R>> for Error
1420where
1421 R: Send + Sync + std::fmt::Debug + 'static,
1422{
1423 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_task::StartTaskError, R>) -> Self {
1424 match err {
1425 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1426 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1427 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1428 source: err.into(),
1429 }),
1430 }
1431 }
1432}
1433impl From<crate::operation::start_task::StartTaskError> for Error {
1434 fn from(err: crate::operation::start_task::StartTaskError) -> Self {
1435 match err {
1436 crate::operation::start_task::StartTaskError::ConflictException(inner) => Error::ConflictException(inner),
1437 crate::operation::start_task::StartTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1438 crate::operation::start_task::StartTaskError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1439 crate::operation::start_task::StartTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1440 crate::operation::start_task::StartTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
1441 crate::operation::start_task::StartTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1442 crate::operation::start_task::StartTaskError::ValidationException(inner) => Error::ValidationException(inner),
1443 crate::operation::start_task::StartTaskError::Unhandled(inner) => Error::Unhandled(inner),
1444 }
1445 }
1446}
1447impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1448where
1449 R: Send + Sync + std::fmt::Debug + 'static,
1450{
1451 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1452 match err {
1453 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1454 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1455 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1456 source: err.into(),
1457 }),
1458 }
1459 }
1460}
1461impl From<crate::operation::tag_resource::TagResourceError> for Error {
1462 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1463 match err {
1464 crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1465 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1466 crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1467 crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1468 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1469 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1470 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1471 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1472 }
1473 }
1474}
1475impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::traverse_agent_context::TraverseAgentContextError, R>> for Error
1476where
1477 R: Send + Sync + std::fmt::Debug + 'static,
1478{
1479 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::traverse_agent_context::TraverseAgentContextError, R>) -> Self {
1480 match err {
1481 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1482 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1483 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1484 source: err.into(),
1485 }),
1486 }
1487 }
1488}
1489impl From<crate::operation::traverse_agent_context::TraverseAgentContextError> for Error {
1490 fn from(err: crate::operation::traverse_agent_context::TraverseAgentContextError) -> Self {
1491 match err {
1492 crate::operation::traverse_agent_context::TraverseAgentContextError::ConflictException(inner) => Error::ConflictException(inner),
1493 crate::operation::traverse_agent_context::TraverseAgentContextError::ResourceNotFoundException(inner) => {
1494 Error::ResourceNotFoundException(inner)
1495 }
1496 crate::operation::traverse_agent_context::TraverseAgentContextError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1497 crate::operation::traverse_agent_context::TraverseAgentContextError::InternalServerException(inner) => {
1498 Error::InternalServerException(inner)
1499 }
1500 crate::operation::traverse_agent_context::TraverseAgentContextError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1501 crate::operation::traverse_agent_context::TraverseAgentContextError::ValidationException(inner) => Error::ValidationException(inner),
1502 crate::operation::traverse_agent_context::TraverseAgentContextError::Unhandled(inner) => Error::Unhandled(inner),
1503 }
1504 }
1505}
1506impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1507where
1508 R: Send + Sync + std::fmt::Debug + 'static,
1509{
1510 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1511 match err {
1512 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1513 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1514 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1515 source: err.into(),
1516 }),
1517 }
1518 }
1519}
1520impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1521 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1522 match err {
1523 crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1524 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1525 crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1526 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1527 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1528 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1529 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1530 }
1531 }
1532}
1533impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_context::UpdateAgentContextError, R>> for Error
1534where
1535 R: Send + Sync + std::fmt::Debug + 'static,
1536{
1537 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_context::UpdateAgentContextError, R>) -> Self {
1538 match err {
1539 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1540 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1541 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1542 source: err.into(),
1543 }),
1544 }
1545 }
1546}
1547impl From<crate::operation::update_agent_context::UpdateAgentContextError> for Error {
1548 fn from(err: crate::operation::update_agent_context::UpdateAgentContextError) -> Self {
1549 match err {
1550 crate::operation::update_agent_context::UpdateAgentContextError::ConflictException(inner) => Error::ConflictException(inner),
1551 crate::operation::update_agent_context::UpdateAgentContextError::ResourceNotFoundException(inner) => {
1552 Error::ResourceNotFoundException(inner)
1553 }
1554 crate::operation::update_agent_context::UpdateAgentContextError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1555 crate::operation::update_agent_context::UpdateAgentContextError::InternalServerException(inner) => Error::InternalServerException(inner),
1556 crate::operation::update_agent_context::UpdateAgentContextError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1557 crate::operation::update_agent_context::UpdateAgentContextError::ValidationException(inner) => Error::ValidationException(inner),
1558 crate::operation::update_agent_context::UpdateAgentContextError::Unhandled(inner) => Error::Unhandled(inner),
1559 }
1560 }
1561}
1562impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_change_set::UpdateChangeSetError, R>> for Error
1563where
1564 R: Send + Sync + std::fmt::Debug + 'static,
1565{
1566 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_change_set::UpdateChangeSetError, R>) -> Self {
1567 match err {
1568 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1569 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1570 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1571 source: err.into(),
1572 }),
1573 }
1574 }
1575}
1576impl From<crate::operation::update_change_set::UpdateChangeSetError> for Error {
1577 fn from(err: crate::operation::update_change_set::UpdateChangeSetError) -> Self {
1578 match err {
1579 crate::operation::update_change_set::UpdateChangeSetError::ConflictException(inner) => Error::ConflictException(inner),
1580 crate::operation::update_change_set::UpdateChangeSetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1581 crate::operation::update_change_set::UpdateChangeSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1582 crate::operation::update_change_set::UpdateChangeSetError::InternalServerException(inner) => Error::InternalServerException(inner),
1583 crate::operation::update_change_set::UpdateChangeSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1584 crate::operation::update_change_set::UpdateChangeSetError::ValidationException(inner) => Error::ValidationException(inner),
1585 crate::operation::update_change_set::UpdateChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
1586 }
1587 }
1588}
1589impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connection::UpdateConnectionError, R>> for Error
1590where
1591 R: Send + Sync + std::fmt::Debug + 'static,
1592{
1593 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connection::UpdateConnectionError, R>) -> Self {
1594 match err {
1595 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1596 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1597 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1598 source: err.into(),
1599 }),
1600 }
1601 }
1602}
1603impl From<crate::operation::update_connection::UpdateConnectionError> for Error {
1604 fn from(err: crate::operation::update_connection::UpdateConnectionError) -> Self {
1605 match err {
1606 crate::operation::update_connection::UpdateConnectionError::ConflictException(inner) => Error::ConflictException(inner),
1607 crate::operation::update_connection::UpdateConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1608 crate::operation::update_connection::UpdateConnectionError::ServiceQuotaExceededException(inner) => {
1609 Error::ServiceQuotaExceededException(inner)
1610 }
1611 crate::operation::update_connection::UpdateConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1612 crate::operation::update_connection::UpdateConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
1613 crate::operation::update_connection::UpdateConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1614 crate::operation::update_connection::UpdateConnectionError::ValidationException(inner) => Error::ValidationException(inner),
1615 crate::operation::update_connection::UpdateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
1616 }
1617 }
1618}
1619impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_curation_policy::UpdateCurationPolicyError, R>> for Error
1620where
1621 R: Send + Sync + std::fmt::Debug + 'static,
1622{
1623 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_curation_policy::UpdateCurationPolicyError, R>) -> Self {
1624 match err {
1625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1628 source: err.into(),
1629 }),
1630 }
1631 }
1632}
1633impl From<crate::operation::update_curation_policy::UpdateCurationPolicyError> for Error {
1634 fn from(err: crate::operation::update_curation_policy::UpdateCurationPolicyError) -> Self {
1635 match err {
1636 crate::operation::update_curation_policy::UpdateCurationPolicyError::ConflictException(inner) => Error::ConflictException(inner),
1637 crate::operation::update_curation_policy::UpdateCurationPolicyError::ResourceNotFoundException(inner) => {
1638 Error::ResourceNotFoundException(inner)
1639 }
1640 crate::operation::update_curation_policy::UpdateCurationPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1641 crate::operation::update_curation_policy::UpdateCurationPolicyError::InternalServerException(inner) => {
1642 Error::InternalServerException(inner)
1643 }
1644 crate::operation::update_curation_policy::UpdateCurationPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1645 crate::operation::update_curation_policy::UpdateCurationPolicyError::ValidationException(inner) => Error::ValidationException(inner),
1646 crate::operation::update_curation_policy::UpdateCurationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1647 }
1648 }
1649}
1650impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::AgenticRetrieveStreamOutputError, R>> for Error
1651where
1652 R: Send + Sync + std::fmt::Debug + 'static,
1653{
1654 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::AgenticRetrieveStreamOutputError, R>) -> Self {
1655 match err {
1656 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1657 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1658 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1659 source: err.into(),
1660 }),
1661 }
1662 }
1663}
1664impl From<crate::types::error::AgenticRetrieveStreamOutputError> for Error {
1665 fn from(err: crate::types::error::AgenticRetrieveStreamOutputError) -> Self {
1666 match err {
1667 crate::types::error::AgenticRetrieveStreamOutputError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1668 crate::types::error::AgenticRetrieveStreamOutputError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1669 crate::types::error::AgenticRetrieveStreamOutputError::InternalServerException(inner) => Error::InternalServerException(inner),
1670 crate::types::error::AgenticRetrieveStreamOutputError::Unhandled(inner) => Error::Unhandled(inner),
1671 }
1672 }
1673}
1674impl ::std::error::Error for Error {
1675 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1676 match self {
1677 Error::AccessDeniedException(inner) => inner.source(),
1678 Error::ConflictException(inner) => inner.source(),
1679 Error::InternalServerException(inner) => inner.source(),
1680 Error::ResourceNotFoundException(inner) => inner.source(),
1681 Error::ServiceQuotaExceededException(inner) => inner.source(),
1682 Error::ThrottlingException(inner) => inner.source(),
1683 Error::ValidationException(inner) => inner.source(),
1684 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1685 }
1686 }
1687}
1688impl ::aws_types::request_id::RequestId for Error {
1689 fn request_id(&self) -> Option<&str> {
1690 match self {
1691 Self::AccessDeniedException(e) => e.request_id(),
1692 Self::ConflictException(e) => e.request_id(),
1693 Self::InternalServerException(e) => e.request_id(),
1694 Self::ResourceNotFoundException(e) => e.request_id(),
1695 Self::ServiceQuotaExceededException(e) => e.request_id(),
1696 Self::ThrottlingException(e) => e.request_id(),
1697 Self::ValidationException(e) => e.request_id(),
1698 Self::Unhandled(e) => e.meta.request_id(),
1699 }
1700 }
1701}