1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 InternalFailureException(crate::types::error::InternalFailureException),
8 InvalidRequestException(crate::types::error::InvalidRequestException),
10 LimitExceededException(crate::types::error::LimitExceededException),
12 ResourceAlreadyExistsException(crate::types::error::ResourceAlreadyExistsException),
14 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
16 ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
18 ThrottlingException(crate::types::error::ThrottlingException),
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::InternalFailureException(inner) => inner.fmt(f),
33 Error::InvalidRequestException(inner) => inner.fmt(f),
34 Error::LimitExceededException(inner) => inner.fmt(f),
35 Error::ResourceAlreadyExistsException(inner) => inner.fmt(f),
36 Error::ResourceNotFoundException(inner) => inner.fmt(f),
37 Error::ServiceUnavailableException(inner) => inner.fmt(f),
38 Error::ThrottlingException(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::InternalFailureException(inner) => inner.meta(),
61 Self::InvalidRequestException(inner) => inner.meta(),
62 Self::LimitExceededException(inner) => inner.meta(),
63 Self::ResourceAlreadyExistsException(inner) => inner.meta(),
64 Self::ResourceNotFoundException(inner) => inner.meta(),
65 Self::ServiceUnavailableException(inner) => inner.meta(),
66 Self::ThrottlingException(inner) => inner.meta(),
67 Self::Unhandled(inner) => &inner.meta,
68 }
69 }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_put_message::BatchPutMessageError, R>> for Error
72where
73 R: Send + Sync + std::fmt::Debug + 'static,
74{
75 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_put_message::BatchPutMessageError, R>) -> Self {
76 match err {
77 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
78 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
79 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
80 source: err.into(),
81 }),
82 }
83 }
84}
85impl From<crate::operation::batch_put_message::BatchPutMessageError> for Error {
86 fn from(err: crate::operation::batch_put_message::BatchPutMessageError) -> Self {
87 match err {
88 crate::operation::batch_put_message::BatchPutMessageError::InternalFailureException(inner) => Error::InternalFailureException(inner),
89 crate::operation::batch_put_message::BatchPutMessageError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
90 crate::operation::batch_put_message::BatchPutMessageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
91 crate::operation::batch_put_message::BatchPutMessageError::ServiceUnavailableException(inner) => {
92 Error::ServiceUnavailableException(inner)
93 }
94 crate::operation::batch_put_message::BatchPutMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
95 crate::operation::batch_put_message::BatchPutMessageError::Unhandled(inner) => Error::Unhandled(inner),
96 }
97 }
98}
99impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_pipeline_reprocessing::CancelPipelineReprocessingError, R>>
100 for Error
101where
102 R: Send + Sync + std::fmt::Debug + 'static,
103{
104 fn from(
105 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_pipeline_reprocessing::CancelPipelineReprocessingError, R>,
106 ) -> Self {
107 match err {
108 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
109 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
110 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
111 source: err.into(),
112 }),
113 }
114 }
115}
116impl From<crate::operation::cancel_pipeline_reprocessing::CancelPipelineReprocessingError> for Error {
117 fn from(err: crate::operation::cancel_pipeline_reprocessing::CancelPipelineReprocessingError) -> Self {
118 match err {
119 crate::operation::cancel_pipeline_reprocessing::CancelPipelineReprocessingError::InternalFailureException(inner) => {
120 Error::InternalFailureException(inner)
121 }
122 crate::operation::cancel_pipeline_reprocessing::CancelPipelineReprocessingError::InvalidRequestException(inner) => {
123 Error::InvalidRequestException(inner)
124 }
125 crate::operation::cancel_pipeline_reprocessing::CancelPipelineReprocessingError::ResourceNotFoundException(inner) => {
126 Error::ResourceNotFoundException(inner)
127 }
128 crate::operation::cancel_pipeline_reprocessing::CancelPipelineReprocessingError::ServiceUnavailableException(inner) => {
129 Error::ServiceUnavailableException(inner)
130 }
131 crate::operation::cancel_pipeline_reprocessing::CancelPipelineReprocessingError::ThrottlingException(inner) => {
132 Error::ThrottlingException(inner)
133 }
134 crate::operation::cancel_pipeline_reprocessing::CancelPipelineReprocessingError::Unhandled(inner) => Error::Unhandled(inner),
135 }
136 }
137}
138impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_channel::CreateChannelError, R>> for Error
139where
140 R: Send + Sync + std::fmt::Debug + 'static,
141{
142 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_channel::CreateChannelError, R>) -> Self {
143 match err {
144 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
145 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
146 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
147 source: err.into(),
148 }),
149 }
150 }
151}
152impl From<crate::operation::create_channel::CreateChannelError> for Error {
153 fn from(err: crate::operation::create_channel::CreateChannelError) -> Self {
154 match err {
155 crate::operation::create_channel::CreateChannelError::InternalFailureException(inner) => Error::InternalFailureException(inner),
156 crate::operation::create_channel::CreateChannelError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
157 crate::operation::create_channel::CreateChannelError::LimitExceededException(inner) => Error::LimitExceededException(inner),
158 crate::operation::create_channel::CreateChannelError::ResourceAlreadyExistsException(inner) => {
159 Error::ResourceAlreadyExistsException(inner)
160 }
161 crate::operation::create_channel::CreateChannelError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
162 crate::operation::create_channel::CreateChannelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
163 crate::operation::create_channel::CreateChannelError::Unhandled(inner) => Error::Unhandled(inner),
164 }
165 }
166}
167impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset::CreateDatasetError, R>> for Error
168where
169 R: Send + Sync + std::fmt::Debug + 'static,
170{
171 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset::CreateDatasetError, R>) -> Self {
172 match err {
173 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
174 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
175 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
176 source: err.into(),
177 }),
178 }
179 }
180}
181impl From<crate::operation::create_dataset::CreateDatasetError> for Error {
182 fn from(err: crate::operation::create_dataset::CreateDatasetError) -> Self {
183 match err {
184 crate::operation::create_dataset::CreateDatasetError::InternalFailureException(inner) => Error::InternalFailureException(inner),
185 crate::operation::create_dataset::CreateDatasetError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
186 crate::operation::create_dataset::CreateDatasetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
187 crate::operation::create_dataset::CreateDatasetError::ResourceAlreadyExistsException(inner) => {
188 Error::ResourceAlreadyExistsException(inner)
189 }
190 crate::operation::create_dataset::CreateDatasetError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
191 crate::operation::create_dataset::CreateDatasetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
192 crate::operation::create_dataset::CreateDatasetError::Unhandled(inner) => Error::Unhandled(inner),
193 }
194 }
195}
196impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset_content::CreateDatasetContentError, R>> for Error
197where
198 R: Send + Sync + std::fmt::Debug + 'static,
199{
200 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset_content::CreateDatasetContentError, R>) -> Self {
201 match err {
202 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
203 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
204 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
205 source: err.into(),
206 }),
207 }
208 }
209}
210impl From<crate::operation::create_dataset_content::CreateDatasetContentError> for Error {
211 fn from(err: crate::operation::create_dataset_content::CreateDatasetContentError) -> Self {
212 match err {
213 crate::operation::create_dataset_content::CreateDatasetContentError::InternalFailureException(inner) => {
214 Error::InternalFailureException(inner)
215 }
216 crate::operation::create_dataset_content::CreateDatasetContentError::InvalidRequestException(inner) => {
217 Error::InvalidRequestException(inner)
218 }
219 crate::operation::create_dataset_content::CreateDatasetContentError::ResourceNotFoundException(inner) => {
220 Error::ResourceNotFoundException(inner)
221 }
222 crate::operation::create_dataset_content::CreateDatasetContentError::ServiceUnavailableException(inner) => {
223 Error::ServiceUnavailableException(inner)
224 }
225 crate::operation::create_dataset_content::CreateDatasetContentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
226 crate::operation::create_dataset_content::CreateDatasetContentError::Unhandled(inner) => Error::Unhandled(inner),
227 }
228 }
229}
230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_datastore::CreateDatastoreError, R>> for Error
231where
232 R: Send + Sync + std::fmt::Debug + 'static,
233{
234 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_datastore::CreateDatastoreError, R>) -> Self {
235 match err {
236 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
237 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
238 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
239 source: err.into(),
240 }),
241 }
242 }
243}
244impl From<crate::operation::create_datastore::CreateDatastoreError> for Error {
245 fn from(err: crate::operation::create_datastore::CreateDatastoreError) -> Self {
246 match err {
247 crate::operation::create_datastore::CreateDatastoreError::InternalFailureException(inner) => Error::InternalFailureException(inner),
248 crate::operation::create_datastore::CreateDatastoreError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
249 crate::operation::create_datastore::CreateDatastoreError::LimitExceededException(inner) => Error::LimitExceededException(inner),
250 crate::operation::create_datastore::CreateDatastoreError::ResourceAlreadyExistsException(inner) => {
251 Error::ResourceAlreadyExistsException(inner)
252 }
253 crate::operation::create_datastore::CreateDatastoreError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
254 crate::operation::create_datastore::CreateDatastoreError::ThrottlingException(inner) => Error::ThrottlingException(inner),
255 crate::operation::create_datastore::CreateDatastoreError::Unhandled(inner) => Error::Unhandled(inner),
256 }
257 }
258}
259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>> for Error
260where
261 R: Send + Sync + std::fmt::Debug + 'static,
262{
263 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>) -> Self {
264 match err {
265 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
266 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
267 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
268 source: err.into(),
269 }),
270 }
271 }
272}
273impl From<crate::operation::create_pipeline::CreatePipelineError> for Error {
274 fn from(err: crate::operation::create_pipeline::CreatePipelineError) -> Self {
275 match err {
276 crate::operation::create_pipeline::CreatePipelineError::InternalFailureException(inner) => Error::InternalFailureException(inner),
277 crate::operation::create_pipeline::CreatePipelineError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
278 crate::operation::create_pipeline::CreatePipelineError::LimitExceededException(inner) => Error::LimitExceededException(inner),
279 crate::operation::create_pipeline::CreatePipelineError::ResourceAlreadyExistsException(inner) => {
280 Error::ResourceAlreadyExistsException(inner)
281 }
282 crate::operation::create_pipeline::CreatePipelineError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
283 crate::operation::create_pipeline::CreatePipelineError::ThrottlingException(inner) => Error::ThrottlingException(inner),
284 crate::operation::create_pipeline::CreatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
285 }
286 }
287}
288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_channel::DeleteChannelError, R>> for Error
289where
290 R: Send + Sync + std::fmt::Debug + 'static,
291{
292 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_channel::DeleteChannelError, R>) -> Self {
293 match err {
294 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
295 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
296 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
297 source: err.into(),
298 }),
299 }
300 }
301}
302impl From<crate::operation::delete_channel::DeleteChannelError> for Error {
303 fn from(err: crate::operation::delete_channel::DeleteChannelError) -> Self {
304 match err {
305 crate::operation::delete_channel::DeleteChannelError::InternalFailureException(inner) => Error::InternalFailureException(inner),
306 crate::operation::delete_channel::DeleteChannelError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
307 crate::operation::delete_channel::DeleteChannelError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
308 crate::operation::delete_channel::DeleteChannelError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
309 crate::operation::delete_channel::DeleteChannelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
310 crate::operation::delete_channel::DeleteChannelError::Unhandled(inner) => Error::Unhandled(inner),
311 }
312 }
313}
314impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset::DeleteDatasetError, R>> for Error
315where
316 R: Send + Sync + std::fmt::Debug + 'static,
317{
318 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset::DeleteDatasetError, R>) -> Self {
319 match err {
320 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
321 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
322 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
323 source: err.into(),
324 }),
325 }
326 }
327}
328impl From<crate::operation::delete_dataset::DeleteDatasetError> for Error {
329 fn from(err: crate::operation::delete_dataset::DeleteDatasetError) -> Self {
330 match err {
331 crate::operation::delete_dataset::DeleteDatasetError::InternalFailureException(inner) => Error::InternalFailureException(inner),
332 crate::operation::delete_dataset::DeleteDatasetError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
333 crate::operation::delete_dataset::DeleteDatasetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
334 crate::operation::delete_dataset::DeleteDatasetError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
335 crate::operation::delete_dataset::DeleteDatasetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
336 crate::operation::delete_dataset::DeleteDatasetError::Unhandled(inner) => Error::Unhandled(inner),
337 }
338 }
339}
340impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset_content::DeleteDatasetContentError, R>> for Error
341where
342 R: Send + Sync + std::fmt::Debug + 'static,
343{
344 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset_content::DeleteDatasetContentError, R>) -> Self {
345 match err {
346 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
347 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
348 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
349 source: err.into(),
350 }),
351 }
352 }
353}
354impl From<crate::operation::delete_dataset_content::DeleteDatasetContentError> for Error {
355 fn from(err: crate::operation::delete_dataset_content::DeleteDatasetContentError) -> Self {
356 match err {
357 crate::operation::delete_dataset_content::DeleteDatasetContentError::InternalFailureException(inner) => {
358 Error::InternalFailureException(inner)
359 }
360 crate::operation::delete_dataset_content::DeleteDatasetContentError::InvalidRequestException(inner) => {
361 Error::InvalidRequestException(inner)
362 }
363 crate::operation::delete_dataset_content::DeleteDatasetContentError::ResourceNotFoundException(inner) => {
364 Error::ResourceNotFoundException(inner)
365 }
366 crate::operation::delete_dataset_content::DeleteDatasetContentError::ServiceUnavailableException(inner) => {
367 Error::ServiceUnavailableException(inner)
368 }
369 crate::operation::delete_dataset_content::DeleteDatasetContentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
370 crate::operation::delete_dataset_content::DeleteDatasetContentError::Unhandled(inner) => Error::Unhandled(inner),
371 }
372 }
373}
374impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_datastore::DeleteDatastoreError, R>> for Error
375where
376 R: Send + Sync + std::fmt::Debug + 'static,
377{
378 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_datastore::DeleteDatastoreError, R>) -> Self {
379 match err {
380 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
381 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
382 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
383 source: err.into(),
384 }),
385 }
386 }
387}
388impl From<crate::operation::delete_datastore::DeleteDatastoreError> for Error {
389 fn from(err: crate::operation::delete_datastore::DeleteDatastoreError) -> Self {
390 match err {
391 crate::operation::delete_datastore::DeleteDatastoreError::InternalFailureException(inner) => Error::InternalFailureException(inner),
392 crate::operation::delete_datastore::DeleteDatastoreError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
393 crate::operation::delete_datastore::DeleteDatastoreError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
394 crate::operation::delete_datastore::DeleteDatastoreError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
395 crate::operation::delete_datastore::DeleteDatastoreError::ThrottlingException(inner) => Error::ThrottlingException(inner),
396 crate::operation::delete_datastore::DeleteDatastoreError::Unhandled(inner) => Error::Unhandled(inner),
397 }
398 }
399}
400impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>> for Error
401where
402 R: Send + Sync + std::fmt::Debug + 'static,
403{
404 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>) -> Self {
405 match err {
406 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
407 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
408 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
409 source: err.into(),
410 }),
411 }
412 }
413}
414impl From<crate::operation::delete_pipeline::DeletePipelineError> for Error {
415 fn from(err: crate::operation::delete_pipeline::DeletePipelineError) -> Self {
416 match err {
417 crate::operation::delete_pipeline::DeletePipelineError::InternalFailureException(inner) => Error::InternalFailureException(inner),
418 crate::operation::delete_pipeline::DeletePipelineError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
419 crate::operation::delete_pipeline::DeletePipelineError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
420 crate::operation::delete_pipeline::DeletePipelineError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
421 crate::operation::delete_pipeline::DeletePipelineError::ThrottlingException(inner) => Error::ThrottlingException(inner),
422 crate::operation::delete_pipeline::DeletePipelineError::Unhandled(inner) => Error::Unhandled(inner),
423 }
424 }
425}
426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_channel::DescribeChannelError, R>> for Error
427where
428 R: Send + Sync + std::fmt::Debug + 'static,
429{
430 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_channel::DescribeChannelError, R>) -> Self {
431 match err {
432 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
433 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
434 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
435 source: err.into(),
436 }),
437 }
438 }
439}
440impl From<crate::operation::describe_channel::DescribeChannelError> for Error {
441 fn from(err: crate::operation::describe_channel::DescribeChannelError) -> Self {
442 match err {
443 crate::operation::describe_channel::DescribeChannelError::InternalFailureException(inner) => Error::InternalFailureException(inner),
444 crate::operation::describe_channel::DescribeChannelError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
445 crate::operation::describe_channel::DescribeChannelError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
446 crate::operation::describe_channel::DescribeChannelError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
447 crate::operation::describe_channel::DescribeChannelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
448 crate::operation::describe_channel::DescribeChannelError::Unhandled(inner) => Error::Unhandled(inner),
449 }
450 }
451}
452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dataset::DescribeDatasetError, R>> for Error
453where
454 R: Send + Sync + std::fmt::Debug + 'static,
455{
456 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dataset::DescribeDatasetError, R>) -> Self {
457 match err {
458 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
459 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
460 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
461 source: err.into(),
462 }),
463 }
464 }
465}
466impl From<crate::operation::describe_dataset::DescribeDatasetError> for Error {
467 fn from(err: crate::operation::describe_dataset::DescribeDatasetError) -> Self {
468 match err {
469 crate::operation::describe_dataset::DescribeDatasetError::InternalFailureException(inner) => Error::InternalFailureException(inner),
470 crate::operation::describe_dataset::DescribeDatasetError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
471 crate::operation::describe_dataset::DescribeDatasetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
472 crate::operation::describe_dataset::DescribeDatasetError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
473 crate::operation::describe_dataset::DescribeDatasetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
474 crate::operation::describe_dataset::DescribeDatasetError::Unhandled(inner) => Error::Unhandled(inner),
475 }
476 }
477}
478impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_datastore::DescribeDatastoreError, R>> for Error
479where
480 R: Send + Sync + std::fmt::Debug + 'static,
481{
482 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_datastore::DescribeDatastoreError, R>) -> Self {
483 match err {
484 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
485 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
486 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
487 source: err.into(),
488 }),
489 }
490 }
491}
492impl From<crate::operation::describe_datastore::DescribeDatastoreError> for Error {
493 fn from(err: crate::operation::describe_datastore::DescribeDatastoreError) -> Self {
494 match err {
495 crate::operation::describe_datastore::DescribeDatastoreError::InternalFailureException(inner) => Error::InternalFailureException(inner),
496 crate::operation::describe_datastore::DescribeDatastoreError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
497 crate::operation::describe_datastore::DescribeDatastoreError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
498 crate::operation::describe_datastore::DescribeDatastoreError::ServiceUnavailableException(inner) => {
499 Error::ServiceUnavailableException(inner)
500 }
501 crate::operation::describe_datastore::DescribeDatastoreError::ThrottlingException(inner) => Error::ThrottlingException(inner),
502 crate::operation::describe_datastore::DescribeDatastoreError::Unhandled(inner) => Error::Unhandled(inner),
503 }
504 }
505}
506impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_logging_options::DescribeLoggingOptionsError, R>> for Error
507where
508 R: Send + Sync + std::fmt::Debug + 'static,
509{
510 fn from(
511 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_logging_options::DescribeLoggingOptionsError, R>,
512 ) -> Self {
513 match err {
514 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
515 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
516 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
517 source: err.into(),
518 }),
519 }
520 }
521}
522impl From<crate::operation::describe_logging_options::DescribeLoggingOptionsError> for Error {
523 fn from(err: crate::operation::describe_logging_options::DescribeLoggingOptionsError) -> Self {
524 match err {
525 crate::operation::describe_logging_options::DescribeLoggingOptionsError::InternalFailureException(inner) => {
526 Error::InternalFailureException(inner)
527 }
528 crate::operation::describe_logging_options::DescribeLoggingOptionsError::InvalidRequestException(inner) => {
529 Error::InvalidRequestException(inner)
530 }
531 crate::operation::describe_logging_options::DescribeLoggingOptionsError::ResourceNotFoundException(inner) => {
532 Error::ResourceNotFoundException(inner)
533 }
534 crate::operation::describe_logging_options::DescribeLoggingOptionsError::ServiceUnavailableException(inner) => {
535 Error::ServiceUnavailableException(inner)
536 }
537 crate::operation::describe_logging_options::DescribeLoggingOptionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
538 crate::operation::describe_logging_options::DescribeLoggingOptionsError::Unhandled(inner) => Error::Unhandled(inner),
539 }
540 }
541}
542impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline::DescribePipelineError, R>> for Error
543where
544 R: Send + Sync + std::fmt::Debug + 'static,
545{
546 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline::DescribePipelineError, R>) -> Self {
547 match err {
548 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
549 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
550 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
551 source: err.into(),
552 }),
553 }
554 }
555}
556impl From<crate::operation::describe_pipeline::DescribePipelineError> for Error {
557 fn from(err: crate::operation::describe_pipeline::DescribePipelineError) -> Self {
558 match err {
559 crate::operation::describe_pipeline::DescribePipelineError::InternalFailureException(inner) => Error::InternalFailureException(inner),
560 crate::operation::describe_pipeline::DescribePipelineError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
561 crate::operation::describe_pipeline::DescribePipelineError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
562 crate::operation::describe_pipeline::DescribePipelineError::ServiceUnavailableException(inner) => {
563 Error::ServiceUnavailableException(inner)
564 }
565 crate::operation::describe_pipeline::DescribePipelineError::ThrottlingException(inner) => Error::ThrottlingException(inner),
566 crate::operation::describe_pipeline::DescribePipelineError::Unhandled(inner) => Error::Unhandled(inner),
567 }
568 }
569}
570impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dataset_content::GetDatasetContentError, R>> for Error
571where
572 R: Send + Sync + std::fmt::Debug + 'static,
573{
574 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dataset_content::GetDatasetContentError, R>) -> Self {
575 match err {
576 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
577 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
578 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
579 source: err.into(),
580 }),
581 }
582 }
583}
584impl From<crate::operation::get_dataset_content::GetDatasetContentError> for Error {
585 fn from(err: crate::operation::get_dataset_content::GetDatasetContentError) -> Self {
586 match err {
587 crate::operation::get_dataset_content::GetDatasetContentError::InternalFailureException(inner) => Error::InternalFailureException(inner),
588 crate::operation::get_dataset_content::GetDatasetContentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
589 crate::operation::get_dataset_content::GetDatasetContentError::ResourceNotFoundException(inner) => {
590 Error::ResourceNotFoundException(inner)
591 }
592 crate::operation::get_dataset_content::GetDatasetContentError::ServiceUnavailableException(inner) => {
593 Error::ServiceUnavailableException(inner)
594 }
595 crate::operation::get_dataset_content::GetDatasetContentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
596 crate::operation::get_dataset_content::GetDatasetContentError::Unhandled(inner) => Error::Unhandled(inner),
597 }
598 }
599}
600impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_channels::ListChannelsError, R>> for Error
601where
602 R: Send + Sync + std::fmt::Debug + 'static,
603{
604 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_channels::ListChannelsError, R>) -> Self {
605 match err {
606 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
607 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
608 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
609 source: err.into(),
610 }),
611 }
612 }
613}
614impl From<crate::operation::list_channels::ListChannelsError> for Error {
615 fn from(err: crate::operation::list_channels::ListChannelsError) -> Self {
616 match err {
617 crate::operation::list_channels::ListChannelsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
618 crate::operation::list_channels::ListChannelsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
619 crate::operation::list_channels::ListChannelsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
620 crate::operation::list_channels::ListChannelsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
621 crate::operation::list_channels::ListChannelsError::Unhandled(inner) => Error::Unhandled(inner),
622 }
623 }
624}
625impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dataset_contents::ListDatasetContentsError, R>> for Error
626where
627 R: Send + Sync + std::fmt::Debug + 'static,
628{
629 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dataset_contents::ListDatasetContentsError, R>) -> Self {
630 match err {
631 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
632 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
633 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
634 source: err.into(),
635 }),
636 }
637 }
638}
639impl From<crate::operation::list_dataset_contents::ListDatasetContentsError> for Error {
640 fn from(err: crate::operation::list_dataset_contents::ListDatasetContentsError) -> Self {
641 match err {
642 crate::operation::list_dataset_contents::ListDatasetContentsError::InternalFailureException(inner) => {
643 Error::InternalFailureException(inner)
644 }
645 crate::operation::list_dataset_contents::ListDatasetContentsError::InvalidRequestException(inner) => {
646 Error::InvalidRequestException(inner)
647 }
648 crate::operation::list_dataset_contents::ListDatasetContentsError::ResourceNotFoundException(inner) => {
649 Error::ResourceNotFoundException(inner)
650 }
651 crate::operation::list_dataset_contents::ListDatasetContentsError::ServiceUnavailableException(inner) => {
652 Error::ServiceUnavailableException(inner)
653 }
654 crate::operation::list_dataset_contents::ListDatasetContentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
655 crate::operation::list_dataset_contents::ListDatasetContentsError::Unhandled(inner) => Error::Unhandled(inner),
656 }
657 }
658}
659impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_datasets::ListDatasetsError, R>> for Error
660where
661 R: Send + Sync + std::fmt::Debug + 'static,
662{
663 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_datasets::ListDatasetsError, R>) -> Self {
664 match err {
665 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
666 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
667 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
668 source: err.into(),
669 }),
670 }
671 }
672}
673impl From<crate::operation::list_datasets::ListDatasetsError> for Error {
674 fn from(err: crate::operation::list_datasets::ListDatasetsError) -> Self {
675 match err {
676 crate::operation::list_datasets::ListDatasetsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
677 crate::operation::list_datasets::ListDatasetsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
678 crate::operation::list_datasets::ListDatasetsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
679 crate::operation::list_datasets::ListDatasetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
680 crate::operation::list_datasets::ListDatasetsError::Unhandled(inner) => Error::Unhandled(inner),
681 }
682 }
683}
684impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_datastores::ListDatastoresError, R>> for Error
685where
686 R: Send + Sync + std::fmt::Debug + 'static,
687{
688 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_datastores::ListDatastoresError, R>) -> Self {
689 match err {
690 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
691 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
692 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
693 source: err.into(),
694 }),
695 }
696 }
697}
698impl From<crate::operation::list_datastores::ListDatastoresError> for Error {
699 fn from(err: crate::operation::list_datastores::ListDatastoresError) -> Self {
700 match err {
701 crate::operation::list_datastores::ListDatastoresError::InternalFailureException(inner) => Error::InternalFailureException(inner),
702 crate::operation::list_datastores::ListDatastoresError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
703 crate::operation::list_datastores::ListDatastoresError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
704 crate::operation::list_datastores::ListDatastoresError::ThrottlingException(inner) => Error::ThrottlingException(inner),
705 crate::operation::list_datastores::ListDatastoresError::Unhandled(inner) => Error::Unhandled(inner),
706 }
707 }
708}
709impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipelines::ListPipelinesError, R>> for Error
710where
711 R: Send + Sync + std::fmt::Debug + 'static,
712{
713 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipelines::ListPipelinesError, R>) -> Self {
714 match err {
715 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
716 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
717 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
718 source: err.into(),
719 }),
720 }
721 }
722}
723impl From<crate::operation::list_pipelines::ListPipelinesError> for Error {
724 fn from(err: crate::operation::list_pipelines::ListPipelinesError) -> Self {
725 match err {
726 crate::operation::list_pipelines::ListPipelinesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
727 crate::operation::list_pipelines::ListPipelinesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
728 crate::operation::list_pipelines::ListPipelinesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
729 crate::operation::list_pipelines::ListPipelinesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
730 crate::operation::list_pipelines::ListPipelinesError::Unhandled(inner) => Error::Unhandled(inner),
731 }
732 }
733}
734impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
735where
736 R: Send + Sync + std::fmt::Debug + 'static,
737{
738 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
739 match err {
740 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
741 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
742 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
743 source: err.into(),
744 }),
745 }
746 }
747}
748impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
749 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
750 match err {
751 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalFailureException(inner) => {
752 Error::InternalFailureException(inner)
753 }
754 crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRequestException(inner) => {
755 Error::InvalidRequestException(inner)
756 }
757 crate::operation::list_tags_for_resource::ListTagsForResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
758 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
759 Error::ResourceNotFoundException(inner)
760 }
761 crate::operation::list_tags_for_resource::ListTagsForResourceError::ServiceUnavailableException(inner) => {
762 Error::ServiceUnavailableException(inner)
763 }
764 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
765 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
766 }
767 }
768}
769impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_logging_options::PutLoggingOptionsError, R>> for Error
770where
771 R: Send + Sync + std::fmt::Debug + 'static,
772{
773 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_logging_options::PutLoggingOptionsError, R>) -> Self {
774 match err {
775 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
776 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
777 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
778 source: err.into(),
779 }),
780 }
781 }
782}
783impl From<crate::operation::put_logging_options::PutLoggingOptionsError> for Error {
784 fn from(err: crate::operation::put_logging_options::PutLoggingOptionsError) -> Self {
785 match err {
786 crate::operation::put_logging_options::PutLoggingOptionsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
787 crate::operation::put_logging_options::PutLoggingOptionsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
788 crate::operation::put_logging_options::PutLoggingOptionsError::ServiceUnavailableException(inner) => {
789 Error::ServiceUnavailableException(inner)
790 }
791 crate::operation::put_logging_options::PutLoggingOptionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
792 crate::operation::put_logging_options::PutLoggingOptionsError::Unhandled(inner) => Error::Unhandled(inner),
793 }
794 }
795}
796impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_pipeline_activity::RunPipelineActivityError, R>> for Error
797where
798 R: Send + Sync + std::fmt::Debug + 'static,
799{
800 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_pipeline_activity::RunPipelineActivityError, R>) -> Self {
801 match err {
802 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
803 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
804 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
805 source: err.into(),
806 }),
807 }
808 }
809}
810impl From<crate::operation::run_pipeline_activity::RunPipelineActivityError> for Error {
811 fn from(err: crate::operation::run_pipeline_activity::RunPipelineActivityError) -> Self {
812 match err {
813 crate::operation::run_pipeline_activity::RunPipelineActivityError::InternalFailureException(inner) => {
814 Error::InternalFailureException(inner)
815 }
816 crate::operation::run_pipeline_activity::RunPipelineActivityError::InvalidRequestException(inner) => {
817 Error::InvalidRequestException(inner)
818 }
819 crate::operation::run_pipeline_activity::RunPipelineActivityError::ServiceUnavailableException(inner) => {
820 Error::ServiceUnavailableException(inner)
821 }
822 crate::operation::run_pipeline_activity::RunPipelineActivityError::ThrottlingException(inner) => Error::ThrottlingException(inner),
823 crate::operation::run_pipeline_activity::RunPipelineActivityError::Unhandled(inner) => Error::Unhandled(inner),
824 }
825 }
826}
827impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::sample_channel_data::SampleChannelDataError, R>> for Error
828where
829 R: Send + Sync + std::fmt::Debug + 'static,
830{
831 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::sample_channel_data::SampleChannelDataError, R>) -> Self {
832 match err {
833 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
834 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
835 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
836 source: err.into(),
837 }),
838 }
839 }
840}
841impl From<crate::operation::sample_channel_data::SampleChannelDataError> for Error {
842 fn from(err: crate::operation::sample_channel_data::SampleChannelDataError) -> Self {
843 match err {
844 crate::operation::sample_channel_data::SampleChannelDataError::InternalFailureException(inner) => Error::InternalFailureException(inner),
845 crate::operation::sample_channel_data::SampleChannelDataError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
846 crate::operation::sample_channel_data::SampleChannelDataError::ResourceNotFoundException(inner) => {
847 Error::ResourceNotFoundException(inner)
848 }
849 crate::operation::sample_channel_data::SampleChannelDataError::ServiceUnavailableException(inner) => {
850 Error::ServiceUnavailableException(inner)
851 }
852 crate::operation::sample_channel_data::SampleChannelDataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
853 crate::operation::sample_channel_data::SampleChannelDataError::Unhandled(inner) => Error::Unhandled(inner),
854 }
855 }
856}
857impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pipeline_reprocessing::StartPipelineReprocessingError, R>>
858 for Error
859where
860 R: Send + Sync + std::fmt::Debug + 'static,
861{
862 fn from(
863 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pipeline_reprocessing::StartPipelineReprocessingError, R>,
864 ) -> Self {
865 match err {
866 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
867 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
868 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
869 source: err.into(),
870 }),
871 }
872 }
873}
874impl From<crate::operation::start_pipeline_reprocessing::StartPipelineReprocessingError> for Error {
875 fn from(err: crate::operation::start_pipeline_reprocessing::StartPipelineReprocessingError) -> Self {
876 match err {
877 crate::operation::start_pipeline_reprocessing::StartPipelineReprocessingError::InternalFailureException(inner) => {
878 Error::InternalFailureException(inner)
879 }
880 crate::operation::start_pipeline_reprocessing::StartPipelineReprocessingError::InvalidRequestException(inner) => {
881 Error::InvalidRequestException(inner)
882 }
883 crate::operation::start_pipeline_reprocessing::StartPipelineReprocessingError::ResourceAlreadyExistsException(inner) => {
884 Error::ResourceAlreadyExistsException(inner)
885 }
886 crate::operation::start_pipeline_reprocessing::StartPipelineReprocessingError::ResourceNotFoundException(inner) => {
887 Error::ResourceNotFoundException(inner)
888 }
889 crate::operation::start_pipeline_reprocessing::StartPipelineReprocessingError::ServiceUnavailableException(inner) => {
890 Error::ServiceUnavailableException(inner)
891 }
892 crate::operation::start_pipeline_reprocessing::StartPipelineReprocessingError::ThrottlingException(inner) => {
893 Error::ThrottlingException(inner)
894 }
895 crate::operation::start_pipeline_reprocessing::StartPipelineReprocessingError::Unhandled(inner) => Error::Unhandled(inner),
896 }
897 }
898}
899impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
900where
901 R: Send + Sync + std::fmt::Debug + 'static,
902{
903 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
904 match err {
905 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
906 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
907 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
908 source: err.into(),
909 }),
910 }
911 }
912}
913impl From<crate::operation::tag_resource::TagResourceError> for Error {
914 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
915 match err {
916 crate::operation::tag_resource::TagResourceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
917 crate::operation::tag_resource::TagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
918 crate::operation::tag_resource::TagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
919 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
920 crate::operation::tag_resource::TagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
921 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
922 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
923 }
924 }
925}
926impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
927where
928 R: Send + Sync + std::fmt::Debug + 'static,
929{
930 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
931 match err {
932 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
933 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
934 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
935 source: err.into(),
936 }),
937 }
938 }
939}
940impl From<crate::operation::untag_resource::UntagResourceError> for Error {
941 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
942 match err {
943 crate::operation::untag_resource::UntagResourceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
944 crate::operation::untag_resource::UntagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
945 crate::operation::untag_resource::UntagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
946 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
947 crate::operation::untag_resource::UntagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
948 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
949 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
950 }
951 }
952}
953impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_channel::UpdateChannelError, R>> for Error
954where
955 R: Send + Sync + std::fmt::Debug + 'static,
956{
957 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_channel::UpdateChannelError, R>) -> Self {
958 match err {
959 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
960 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
961 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
962 source: err.into(),
963 }),
964 }
965 }
966}
967impl From<crate::operation::update_channel::UpdateChannelError> for Error {
968 fn from(err: crate::operation::update_channel::UpdateChannelError) -> Self {
969 match err {
970 crate::operation::update_channel::UpdateChannelError::InternalFailureException(inner) => Error::InternalFailureException(inner),
971 crate::operation::update_channel::UpdateChannelError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
972 crate::operation::update_channel::UpdateChannelError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
973 crate::operation::update_channel::UpdateChannelError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
974 crate::operation::update_channel::UpdateChannelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
975 crate::operation::update_channel::UpdateChannelError::Unhandled(inner) => Error::Unhandled(inner),
976 }
977 }
978}
979impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dataset::UpdateDatasetError, R>> for Error
980where
981 R: Send + Sync + std::fmt::Debug + 'static,
982{
983 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dataset::UpdateDatasetError, R>) -> Self {
984 match err {
985 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
986 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
987 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
988 source: err.into(),
989 }),
990 }
991 }
992}
993impl From<crate::operation::update_dataset::UpdateDatasetError> for Error {
994 fn from(err: crate::operation::update_dataset::UpdateDatasetError) -> Self {
995 match err {
996 crate::operation::update_dataset::UpdateDatasetError::InternalFailureException(inner) => Error::InternalFailureException(inner),
997 crate::operation::update_dataset::UpdateDatasetError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
998 crate::operation::update_dataset::UpdateDatasetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
999 crate::operation::update_dataset::UpdateDatasetError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1000 crate::operation::update_dataset::UpdateDatasetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1001 crate::operation::update_dataset::UpdateDatasetError::Unhandled(inner) => Error::Unhandled(inner),
1002 }
1003 }
1004}
1005impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_datastore::UpdateDatastoreError, R>> for Error
1006where
1007 R: Send + Sync + std::fmt::Debug + 'static,
1008{
1009 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_datastore::UpdateDatastoreError, R>) -> Self {
1010 match err {
1011 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1012 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1013 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1014 source: err.into(),
1015 }),
1016 }
1017 }
1018}
1019impl From<crate::operation::update_datastore::UpdateDatastoreError> for Error {
1020 fn from(err: crate::operation::update_datastore::UpdateDatastoreError) -> Self {
1021 match err {
1022 crate::operation::update_datastore::UpdateDatastoreError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1023 crate::operation::update_datastore::UpdateDatastoreError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1024 crate::operation::update_datastore::UpdateDatastoreError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1025 crate::operation::update_datastore::UpdateDatastoreError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1026 crate::operation::update_datastore::UpdateDatastoreError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1027 crate::operation::update_datastore::UpdateDatastoreError::Unhandled(inner) => Error::Unhandled(inner),
1028 }
1029 }
1030}
1031impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline::UpdatePipelineError, R>> for Error
1032where
1033 R: Send + Sync + std::fmt::Debug + 'static,
1034{
1035 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline::UpdatePipelineError, R>) -> Self {
1036 match err {
1037 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1038 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1039 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1040 source: err.into(),
1041 }),
1042 }
1043 }
1044}
1045impl From<crate::operation::update_pipeline::UpdatePipelineError> for Error {
1046 fn from(err: crate::operation::update_pipeline::UpdatePipelineError) -> Self {
1047 match err {
1048 crate::operation::update_pipeline::UpdatePipelineError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1049 crate::operation::update_pipeline::UpdatePipelineError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1050 crate::operation::update_pipeline::UpdatePipelineError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1051 crate::operation::update_pipeline::UpdatePipelineError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1052 crate::operation::update_pipeline::UpdatePipelineError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1053 crate::operation::update_pipeline::UpdatePipelineError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1054 crate::operation::update_pipeline::UpdatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
1055 }
1056 }
1057}
1058impl ::std::error::Error for Error {
1059 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1060 match self {
1061 Error::InternalFailureException(inner) => inner.source(),
1062 Error::InvalidRequestException(inner) => inner.source(),
1063 Error::LimitExceededException(inner) => inner.source(),
1064 Error::ResourceAlreadyExistsException(inner) => inner.source(),
1065 Error::ResourceNotFoundException(inner) => inner.source(),
1066 Error::ServiceUnavailableException(inner) => inner.source(),
1067 Error::ThrottlingException(inner) => inner.source(),
1068 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1069 }
1070 }
1071}
1072impl ::aws_types::request_id::RequestId for Error {
1073 fn request_id(&self) -> Option<&str> {
1074 match self {
1075 Self::InternalFailureException(e) => e.request_id(),
1076 Self::InvalidRequestException(e) => e.request_id(),
1077 Self::LimitExceededException(e) => e.request_id(),
1078 Self::ResourceAlreadyExistsException(e) => e.request_id(),
1079 Self::ResourceNotFoundException(e) => e.request_id(),
1080 Self::ServiceUnavailableException(e) => e.request_id(),
1081 Self::ThrottlingException(e) => e.request_id(),
1082 Self::Unhandled(e) => e.meta.request_id(),
1083 }
1084 }
1085}