1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* ServiceErrorGenerator.kt:252 */
|
2 3 | /// All possible error types for this service.
|
4 + | /* RustType.kt:516 */
|
3 5 | #[non_exhaustive]
|
6 + | /* RustType.kt:516 */
|
4 7 | #[derive(::std::fmt::Debug)]
|
5 - | pub enum Error {
|
6 - | /// <p>You do not have sufficient access to perform this action.</p>
|
8 + | pub /* ServiceErrorGenerator.kt:257 */ enum Error {
|
9 + | /// /* ServiceErrorGenerator.kt:259 */<p>You do not have sufficient access to perform this action.</p>
|
10 + | /* ServiceErrorGenerator.kt:262 */
|
7 11 | AccessDeniedError(crate::types::error::AccessDeniedError),
|
8 - | /// <p>You have reached the limit for concurrent API requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapi-performance">Optimizing performance of the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
12 + | /// /* ServiceErrorGenerator.kt:259 */<p>You have reached the limit for concurrent API requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapi-performance">Optimizing performance of the EBS direct APIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
13 + | /* ServiceErrorGenerator.kt:262 */
|
9 14 | ConcurrentLimitExceededError(crate::types::error::ConcurrentLimitExceededError),
|
10 - | /// <p>The request uses the same client token as a previous, but non-identical request.</p>
|
15 + | /// /* ServiceErrorGenerator.kt:259 */<p>The request uses the same client token as a previous, but non-identical request.</p>
|
16 + | /* ServiceErrorGenerator.kt:262 */
|
11 17 | ConflictError(crate::types::error::ConflictError),
|
12 - | /// <p>An internal error has occurred.</p>
|
18 + | /// /* ServiceErrorGenerator.kt:259 */<p>An internal error has occurred.</p>
|
19 + | /* ServiceErrorGenerator.kt:262 */
|
13 20 | InternalServerError(crate::types::error::InternalServerError),
|
14 - | /// <p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
21 + | /// /* ServiceErrorGenerator.kt:259 */<p>The number of API requests has exceed the maximum allowed API request throttling limit.</p>
|
22 + | /* ServiceErrorGenerator.kt:262 */
|
15 23 | RequestThrottledError(crate::types::error::RequestThrottledError),
|
16 - | /// <p>The specified resource does not exist.</p>
|
24 + | /// /* ServiceErrorGenerator.kt:259 */<p>The specified resource does not exist.</p>
|
25 + | /* ServiceErrorGenerator.kt:262 */
|
17 26 | ResourceNotFoundError(crate::types::error::ResourceNotFoundError),
|
18 - | /// <p>Your current service quotas do not allow you to perform this action.</p>
|
27 + | /// /* ServiceErrorGenerator.kt:259 */<p>Your current service quotas do not allow you to perform this action.</p>
|
28 + | /* ServiceErrorGenerator.kt:262 */
|
19 29 | ServiceQuotaExceededError(crate::types::error::ServiceQuotaExceededError),
|
20 - | /// <p>The input fails to satisfy the constraints of the EBS direct APIs.</p>
|
30 + | /// /* ServiceErrorGenerator.kt:259 */<p>The input fails to satisfy the constraints of the EBS direct APIs.</p>
|
31 + | /* ServiceErrorGenerator.kt:262 */
|
21 32 | ValidationError(crate::types::error::ValidationError),
|
22 - | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
33 + | /// /* ServiceErrorGenerator.kt:264 */An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
34 + | /* ServiceErrorGenerator.kt:320 */
|
23 35 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
24 36 | variable wildcard pattern and check `.code()`:
|
25 37 | \
|
26 38 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
27 39 | \
|
28 40 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
|
29 - | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
41 + | /* ServiceErrorGenerator.kt:266 */
|
42 + | Unhandled(crate::error::sealed_unhandled::Unhandled), /* ServiceErrorGenerator.kt:257 */
|
30 43 | }
|
44 + | /* ServiceErrorGenerator.kt:131 */
|
31 45 | impl ::std::fmt::Display for Error {
|
46 + | /* ServiceErrorGenerator.kt:132 */
|
32 47 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
48 + | /* ServiceErrorGenerator.kt:133 */
|
33 49 | match self {
|
34 - | Error::AccessDeniedError(inner) => inner.fmt(f),
|
35 - | Error::ConcurrentLimitExceededError(inner) => inner.fmt(f),
|
36 - | Error::ConflictError(inner) => inner.fmt(f),
|
37 - | Error::InternalServerError(inner) => inner.fmt(f),
|
38 - | Error::RequestThrottledError(inner) => inner.fmt(f),
|
39 - | Error::ResourceNotFoundError(inner) => inner.fmt(f),
|
40 - | Error::ServiceQuotaExceededError(inner) => inner.fmt(f),
|
41 - | Error::ValidationError(inner) => inner.fmt(f),
|
50 + | /* ServiceErrorGenerator.kt:135 */ Error::AccessDeniedError(inner) => inner.fmt(f),
|
51 + | /* ServiceErrorGenerator.kt:135 */ Error::ConcurrentLimitExceededError(inner) => inner.fmt(f),
|
52 + | /* ServiceErrorGenerator.kt:135 */ Error::ConflictError(inner) => inner.fmt(f),
|
53 + | /* ServiceErrorGenerator.kt:135 */ Error::InternalServerError(inner) => inner.fmt(f),
|
54 + | /* ServiceErrorGenerator.kt:135 */ Error::RequestThrottledError(inner) => inner.fmt(f),
|
55 + | /* ServiceErrorGenerator.kt:135 */ Error::ResourceNotFoundError(inner) => inner.fmt(f),
|
56 + | /* ServiceErrorGenerator.kt:135 */ Error::ServiceQuotaExceededError(inner) => inner.fmt(f),
|
57 + | /* ServiceErrorGenerator.kt:135 */ Error::ValidationError(inner) => inner.fmt(f),
|
58 + | /* ServiceErrorGenerator.kt:137 */
|
42 59 | Error::Unhandled(_) => {
|
43 60 | if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
|
44 61 | write!(f, "unhandled error ({code})")
|
45 62 | } else {
|
46 63 | f.write_str("unhandled error")
|
47 64 | }
|
48 - | }
|
65 + | } /* ServiceErrorGenerator.kt:133 */
|
49 66 | }
|
67 + | /* ServiceErrorGenerator.kt:132 */
|
50 68 | }
|
69 + | /* ServiceErrorGenerator.kt:131 */
|
51 70 | }
|
71 + | /* ServiceErrorGenerator.kt:154 */
|
52 72 | impl From<::aws_smithy_types::error::operation::BuildError> for Error {
|
53 73 | fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
|
54 74 | Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
55 75 | source: value.into(),
|
56 76 | meta: ::std::default::Default::default(),
|
57 77 | })
|
58 78 | }
|
59 79 | }
|
80 + | /* ServiceErrorGenerator.kt:223 */
|
60 81 | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
|
61 82 | fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
|
62 83 | match self {
|
63 84 | Self::AccessDeniedError(inner) => inner.meta(),
|
64 85 | Self::ConcurrentLimitExceededError(inner) => inner.meta(),
|
65 86 | Self::ConflictError(inner) => inner.meta(),
|
66 87 | Self::InternalServerError(inner) => inner.meta(),
|
67 88 | Self::RequestThrottledError(inner) => inner.meta(),
|
68 89 | Self::ResourceNotFoundError(inner) => inner.meta(),
|
69 90 | Self::ServiceQuotaExceededError(inner) => inner.meta(),
|
70 91 | Self::ValidationError(inner) => inner.meta(),
|
71 92 | Self::Unhandled(inner) => &inner.meta,
|
72 93 | }
|
73 94 | }
|
74 95 | }
|
96 + | /* ServiceErrorGenerator.kt:174 */
|
75 97 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::complete_snapshot::CompleteSnapshotError, R>> for Error
|
76 98 | where
|
77 99 | R: Send + Sync + std::fmt::Debug + 'static,
|
78 100 | {
|
101 + | /* ServiceErrorGenerator.kt:179 */
|
79 102 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::complete_snapshot::CompleteSnapshotError, R>) -> Self {
|
103 + | /* ServiceErrorGenerator.kt:184 */
|
80 104 | match err {
|
105 + | /* ServiceErrorGenerator.kt:185 */
|
81 106 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
107 + | /* ServiceErrorGenerator.kt:186 */
|
82 108 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
83 109 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
84 110 | source: err.into(),
|
85 111 | }),
|
112 + | /* ServiceErrorGenerator.kt:184 */
|
86 113 | }
|
114 + | /* ServiceErrorGenerator.kt:179 */
|
87 115 | }
|
116 + | /* ServiceErrorGenerator.kt:174 */
|
88 117 | }
|
118 + | /* ServiceErrorGenerator.kt:202 */
|
89 119 | impl From<crate::operation::complete_snapshot::CompleteSnapshotError> for Error {
|
120 + | /* ServiceErrorGenerator.kt:203 */
|
90 121 | fn from(err: crate::operation::complete_snapshot::CompleteSnapshotError) -> Self {
|
122 + | /* ServiceErrorGenerator.kt:204 */
|
91 123 | match err {
|
124 + | /* ServiceErrorGenerator.kt:207 */
|
92 125 | crate::operation::complete_snapshot::CompleteSnapshotError::AccessDeniedError(inner) => Error::AccessDeniedError(inner),
|
126 + | /* ServiceErrorGenerator.kt:207 */
|
93 127 | crate::operation::complete_snapshot::CompleteSnapshotError::InternalServerError(inner) => Error::InternalServerError(inner),
|
128 + | /* ServiceErrorGenerator.kt:207 */
|
94 129 | crate::operation::complete_snapshot::CompleteSnapshotError::RequestThrottledError(inner) => Error::RequestThrottledError(inner),
|
130 + | /* ServiceErrorGenerator.kt:207 */
|
95 131 | crate::operation::complete_snapshot::CompleteSnapshotError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
|
132 + | /* ServiceErrorGenerator.kt:207 */
|
96 133 | crate::operation::complete_snapshot::CompleteSnapshotError::ServiceQuotaExceededError(inner) => Error::ServiceQuotaExceededError(inner),
|
134 + | /* ServiceErrorGenerator.kt:207 */
|
97 135 | crate::operation::complete_snapshot::CompleteSnapshotError::ValidationError(inner) => Error::ValidationError(inner),
|
136 + | /* ServiceErrorGenerator.kt:212 */
|
98 137 | crate::operation::complete_snapshot::CompleteSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
|
138 + | /* ServiceErrorGenerator.kt:204 */
|
99 139 | }
|
140 + | /* ServiceErrorGenerator.kt:203 */
|
100 141 | }
|
142 + | /* ServiceErrorGenerator.kt:202 */
|
101 143 | }
|
144 + | /* ServiceErrorGenerator.kt:174 */
|
102 145 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_snapshot_block::GetSnapshotBlockError, R>> for Error
|
103 146 | where
|
104 147 | R: Send + Sync + std::fmt::Debug + 'static,
|
105 148 | {
|
149 + | /* ServiceErrorGenerator.kt:179 */
|
106 150 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_snapshot_block::GetSnapshotBlockError, R>) -> Self {
|
151 + | /* ServiceErrorGenerator.kt:184 */
|
107 152 | match err {
|
153 + | /* ServiceErrorGenerator.kt:185 */
|
108 154 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
155 + | /* ServiceErrorGenerator.kt:186 */
|
109 156 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
110 157 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
111 158 | source: err.into(),
|
112 159 | }),
|
160 + | /* ServiceErrorGenerator.kt:184 */
|
113 161 | }
|
162 + | /* ServiceErrorGenerator.kt:179 */
|
114 163 | }
|
164 + | /* ServiceErrorGenerator.kt:174 */
|
115 165 | }
|
166 + | /* ServiceErrorGenerator.kt:202 */
|
116 167 | impl From<crate::operation::get_snapshot_block::GetSnapshotBlockError> for Error {
|
168 + | /* ServiceErrorGenerator.kt:203 */
|
117 169 | fn from(err: crate::operation::get_snapshot_block::GetSnapshotBlockError) -> Self {
|
170 + | /* ServiceErrorGenerator.kt:204 */
|
118 171 | match err {
|
172 + | /* ServiceErrorGenerator.kt:207 */
|
119 173 | crate::operation::get_snapshot_block::GetSnapshotBlockError::AccessDeniedError(inner) => Error::AccessDeniedError(inner),
|
174 + | /* ServiceErrorGenerator.kt:207 */
|
120 175 | crate::operation::get_snapshot_block::GetSnapshotBlockError::InternalServerError(inner) => Error::InternalServerError(inner),
|
176 + | /* ServiceErrorGenerator.kt:207 */
|
121 177 | crate::operation::get_snapshot_block::GetSnapshotBlockError::RequestThrottledError(inner) => Error::RequestThrottledError(inner),
|
178 + | /* ServiceErrorGenerator.kt:207 */
|
122 179 | crate::operation::get_snapshot_block::GetSnapshotBlockError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
|
180 + | /* ServiceErrorGenerator.kt:207 */
|
123 181 | crate::operation::get_snapshot_block::GetSnapshotBlockError::ServiceQuotaExceededError(inner) => Error::ServiceQuotaExceededError(inner),
|
182 + | /* ServiceErrorGenerator.kt:207 */
|
124 183 | crate::operation::get_snapshot_block::GetSnapshotBlockError::ValidationError(inner) => Error::ValidationError(inner),
|
184 + | /* ServiceErrorGenerator.kt:212 */
|
125 185 | crate::operation::get_snapshot_block::GetSnapshotBlockError::Unhandled(inner) => Error::Unhandled(inner),
|
186 + | /* ServiceErrorGenerator.kt:204 */
|
126 187 | }
|
188 + | /* ServiceErrorGenerator.kt:203 */
|
127 189 | }
|
190 + | /* ServiceErrorGenerator.kt:202 */
|
128 191 | }
|
192 + | /* ServiceErrorGenerator.kt:174 */
|
129 193 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_changed_blocks::ListChangedBlocksError, R>> for Error
|
130 194 | where
|
131 195 | R: Send + Sync + std::fmt::Debug + 'static,
|
132 196 | {
|
197 + | /* ServiceErrorGenerator.kt:179 */
|
133 198 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_changed_blocks::ListChangedBlocksError, R>) -> Self {
|
199 + | /* ServiceErrorGenerator.kt:184 */
|
134 200 | match err {
|
201 + | /* ServiceErrorGenerator.kt:185 */
|
135 202 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
203 + | /* ServiceErrorGenerator.kt:186 */
|
136 204 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
137 205 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
138 206 | source: err.into(),
|
139 207 | }),
|
208 + | /* ServiceErrorGenerator.kt:184 */
|
140 209 | }
|
210 + | /* ServiceErrorGenerator.kt:179 */
|
141 211 | }
|
212 + | /* ServiceErrorGenerator.kt:174 */
|
142 213 | }
|
214 + | /* ServiceErrorGenerator.kt:202 */
|
143 215 | impl From<crate::operation::list_changed_blocks::ListChangedBlocksError> for Error {
|
216 + | /* ServiceErrorGenerator.kt:203 */
|
144 217 | fn from(err: crate::operation::list_changed_blocks::ListChangedBlocksError) -> Self {
|
218 + | /* ServiceErrorGenerator.kt:204 */
|
145 219 | match err {
|
220 + | /* ServiceErrorGenerator.kt:207 */
|
146 221 | crate::operation::list_changed_blocks::ListChangedBlocksError::AccessDeniedError(inner) => Error::AccessDeniedError(inner),
|
222 + | /* ServiceErrorGenerator.kt:207 */
|
147 223 | crate::operation::list_changed_blocks::ListChangedBlocksError::InternalServerError(inner) => Error::InternalServerError(inner),
|
224 + | /* ServiceErrorGenerator.kt:207 */
|
148 225 | crate::operation::list_changed_blocks::ListChangedBlocksError::RequestThrottledError(inner) => Error::RequestThrottledError(inner),
|
226 + | /* ServiceErrorGenerator.kt:207 */
|
149 227 | crate::operation::list_changed_blocks::ListChangedBlocksError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
|
228 + | /* ServiceErrorGenerator.kt:207 */
|
150 229 | crate::operation::list_changed_blocks::ListChangedBlocksError::ServiceQuotaExceededError(inner) => {
|
151 230 | Error::ServiceQuotaExceededError(inner)
|
152 231 | }
|
232 + | /* ServiceErrorGenerator.kt:207 */
|
153 233 | crate::operation::list_changed_blocks::ListChangedBlocksError::ValidationError(inner) => Error::ValidationError(inner),
|
234 + | /* ServiceErrorGenerator.kt:212 */
|
154 235 | crate::operation::list_changed_blocks::ListChangedBlocksError::Unhandled(inner) => Error::Unhandled(inner),
|
236 + | /* ServiceErrorGenerator.kt:204 */
|
155 237 | }
|
238 + | /* ServiceErrorGenerator.kt:203 */
|
156 239 | }
|
240 + | /* ServiceErrorGenerator.kt:202 */
|
157 241 | }
|
242 + | /* ServiceErrorGenerator.kt:174 */
|
158 243 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshot_blocks::ListSnapshotBlocksError, R>> for Error
|
159 244 | where
|
160 245 | R: Send + Sync + std::fmt::Debug + 'static,
|
161 246 | {
|
247 + | /* ServiceErrorGenerator.kt:179 */
|
162 248 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshot_blocks::ListSnapshotBlocksError, R>) -> Self {
|
249 + | /* ServiceErrorGenerator.kt:184 */
|
163 250 | match err {
|
251 + | /* ServiceErrorGenerator.kt:185 */
|
164 252 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
253 + | /* ServiceErrorGenerator.kt:186 */
|
165 254 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
166 255 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
167 256 | source: err.into(),
|
168 257 | }),
|
258 + | /* ServiceErrorGenerator.kt:184 */
|
169 259 | }
|
260 + | /* ServiceErrorGenerator.kt:179 */
|
170 261 | }
|
262 + | /* ServiceErrorGenerator.kt:174 */
|
171 263 | }
|
264 + | /* ServiceErrorGenerator.kt:202 */
|
172 265 | impl From<crate::operation::list_snapshot_blocks::ListSnapshotBlocksError> for Error {
|
266 + | /* ServiceErrorGenerator.kt:203 */
|
173 267 | fn from(err: crate::operation::list_snapshot_blocks::ListSnapshotBlocksError) -> Self {
|
268 + | /* ServiceErrorGenerator.kt:204 */
|
174 269 | match err {
|
270 + | /* ServiceErrorGenerator.kt:207 */
|
175 271 | crate::operation::list_snapshot_blocks::ListSnapshotBlocksError::AccessDeniedError(inner) => Error::AccessDeniedError(inner),
|
272 + | /* ServiceErrorGenerator.kt:207 */
|
176 273 | crate::operation::list_snapshot_blocks::ListSnapshotBlocksError::InternalServerError(inner) => Error::InternalServerError(inner),
|
274 + | /* ServiceErrorGenerator.kt:207 */
|
177 275 | crate::operation::list_snapshot_blocks::ListSnapshotBlocksError::RequestThrottledError(inner) => Error::RequestThrottledError(inner),
|
276 + | /* ServiceErrorGenerator.kt:207 */
|
178 277 | crate::operation::list_snapshot_blocks::ListSnapshotBlocksError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
|
278 + | /* ServiceErrorGenerator.kt:207 */
|
179 279 | crate::operation::list_snapshot_blocks::ListSnapshotBlocksError::ServiceQuotaExceededError(inner) => {
|
180 280 | Error::ServiceQuotaExceededError(inner)
|
181 281 | }
|
282 + | /* ServiceErrorGenerator.kt:207 */
|
182 283 | crate::operation::list_snapshot_blocks::ListSnapshotBlocksError::ValidationError(inner) => Error::ValidationError(inner),
|
284 + | /* ServiceErrorGenerator.kt:212 */
|
183 285 | crate::operation::list_snapshot_blocks::ListSnapshotBlocksError::Unhandled(inner) => Error::Unhandled(inner),
|
286 + | /* ServiceErrorGenerator.kt:204 */
|
184 287 | }
|
288 + | /* ServiceErrorGenerator.kt:203 */
|
185 289 | }
|
290 + | /* ServiceErrorGenerator.kt:202 */
|
186 291 | }
|
292 + | /* ServiceErrorGenerator.kt:174 */
|
187 293 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_snapshot_block::PutSnapshotBlockError, R>> for Error
|
188 294 | where
|
189 295 | R: Send + Sync + std::fmt::Debug + 'static,
|
190 296 | {
|
297 + | /* ServiceErrorGenerator.kt:179 */
|
191 298 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_snapshot_block::PutSnapshotBlockError, R>) -> Self {
|
299 + | /* ServiceErrorGenerator.kt:184 */
|
192 300 | match err {
|
301 + | /* ServiceErrorGenerator.kt:185 */
|
193 302 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
303 + | /* ServiceErrorGenerator.kt:186 */
|
194 304 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
195 305 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
196 306 | source: err.into(),
|
197 307 | }),
|
308 + | /* ServiceErrorGenerator.kt:184 */
|
198 309 | }
|
310 + | /* ServiceErrorGenerator.kt:179 */
|
199 311 | }
|
312 + | /* ServiceErrorGenerator.kt:174 */
|
200 313 | }
|
314 + | /* ServiceErrorGenerator.kt:202 */
|
201 315 | impl From<crate::operation::put_snapshot_block::PutSnapshotBlockError> for Error {
|
316 + | /* ServiceErrorGenerator.kt:203 */
|
202 317 | fn from(err: crate::operation::put_snapshot_block::PutSnapshotBlockError) -> Self {
|
318 + | /* ServiceErrorGenerator.kt:204 */
|
203 319 | match err {
|
320 + | /* ServiceErrorGenerator.kt:207 */
|
204 321 | crate::operation::put_snapshot_block::PutSnapshotBlockError::AccessDeniedError(inner) => Error::AccessDeniedError(inner),
|
322 + | /* ServiceErrorGenerator.kt:207 */
|
205 323 | crate::operation::put_snapshot_block::PutSnapshotBlockError::InternalServerError(inner) => Error::InternalServerError(inner),
|
324 + | /* ServiceErrorGenerator.kt:207 */
|
206 325 | crate::operation::put_snapshot_block::PutSnapshotBlockError::RequestThrottledError(inner) => Error::RequestThrottledError(inner),
|
326 + | /* ServiceErrorGenerator.kt:207 */
|
207 327 | crate::operation::put_snapshot_block::PutSnapshotBlockError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
|
328 + | /* ServiceErrorGenerator.kt:207 */
|
208 329 | crate::operation::put_snapshot_block::PutSnapshotBlockError::ServiceQuotaExceededError(inner) => Error::ServiceQuotaExceededError(inner),
|
330 + | /* ServiceErrorGenerator.kt:207 */
|
209 331 | crate::operation::put_snapshot_block::PutSnapshotBlockError::ValidationError(inner) => Error::ValidationError(inner),
|
332 + | /* ServiceErrorGenerator.kt:212 */
|
210 333 | crate::operation::put_snapshot_block::PutSnapshotBlockError::Unhandled(inner) => Error::Unhandled(inner),
|
334 + | /* ServiceErrorGenerator.kt:204 */
|
211 335 | }
|
336 + | /* ServiceErrorGenerator.kt:203 */
|
212 337 | }
|
338 + | /* ServiceErrorGenerator.kt:202 */
|
213 339 | }
|
340 + | /* ServiceErrorGenerator.kt:174 */
|
214 341 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_snapshot::StartSnapshotError, R>> for Error
|
215 342 | where
|
216 343 | R: Send + Sync + std::fmt::Debug + 'static,
|
217 344 | {
|
345 + | /* ServiceErrorGenerator.kt:179 */
|
218 346 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_snapshot::StartSnapshotError, R>) -> Self {
|
347 + | /* ServiceErrorGenerator.kt:184 */
|
219 348 | match err {
|
349 + | /* ServiceErrorGenerator.kt:185 */
|
220 350 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
351 + | /* ServiceErrorGenerator.kt:186 */
|
221 352 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
222 353 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
223 354 | source: err.into(),
|
224 355 | }),
|
356 + | /* ServiceErrorGenerator.kt:184 */
|
225 357 | }
|
358 + | /* ServiceErrorGenerator.kt:179 */
|
226 359 | }
|
360 + | /* ServiceErrorGenerator.kt:174 */
|
227 361 | }
|
362 + | /* ServiceErrorGenerator.kt:202 */
|
228 363 | impl From<crate::operation::start_snapshot::StartSnapshotError> for Error {
|
364 + | /* ServiceErrorGenerator.kt:203 */
|
229 365 | fn from(err: crate::operation::start_snapshot::StartSnapshotError) -> Self {
|
366 + | /* ServiceErrorGenerator.kt:204 */
|
230 367 | match err {
|
368 + | /* ServiceErrorGenerator.kt:207 */
|
231 369 | crate::operation::start_snapshot::StartSnapshotError::AccessDeniedError(inner) => Error::AccessDeniedError(inner),
|
370 + | /* ServiceErrorGenerator.kt:207 */
|
232 371 | crate::operation::start_snapshot::StartSnapshotError::ConcurrentLimitExceededError(inner) => Error::ConcurrentLimitExceededError(inner),
|
372 + | /* ServiceErrorGenerator.kt:207 */
|
233 373 | crate::operation::start_snapshot::StartSnapshotError::ConflictError(inner) => Error::ConflictError(inner),
|
374 + | /* ServiceErrorGenerator.kt:207 */
|
234 375 | crate::operation::start_snapshot::StartSnapshotError::InternalServerError(inner) => Error::InternalServerError(inner),
|
376 + | /* ServiceErrorGenerator.kt:207 */
|
235 377 | crate::operation::start_snapshot::StartSnapshotError::RequestThrottledError(inner) => Error::RequestThrottledError(inner),
|
378 + | /* ServiceErrorGenerator.kt:207 */
|
236 379 | crate::operation::start_snapshot::StartSnapshotError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
|
380 + | /* ServiceErrorGenerator.kt:207 */
|
237 381 | crate::operation::start_snapshot::StartSnapshotError::ServiceQuotaExceededError(inner) => Error::ServiceQuotaExceededError(inner),
|
382 + | /* ServiceErrorGenerator.kt:207 */
|
238 383 | crate::operation::start_snapshot::StartSnapshotError::ValidationError(inner) => Error::ValidationError(inner),
|
384 + | /* ServiceErrorGenerator.kt:212 */
|
239 385 | crate::operation::start_snapshot::StartSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
|
386 + | /* ServiceErrorGenerator.kt:204 */
|
240 387 | }
|
388 + | /* ServiceErrorGenerator.kt:203 */
|
241 389 | }
|
390 + | /* ServiceErrorGenerator.kt:202 */
|
242 391 | }
|
392 + | /* ServiceErrorGenerator.kt:115 */
|
243 393 | impl ::std::error::Error for Error {
|
394 + | /* ServiceErrorGenerator.kt:116 */
|
244 395 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
396 + | /* ServiceErrorGenerator.kt:117 */
|
245 397 | match self {
|
246 - | Error::AccessDeniedError(inner) => inner.source(),
|
247 - | Error::ConcurrentLimitExceededError(inner) => inner.source(),
|
248 - | Error::ConflictError(inner) => inner.source(),
|
249 - | Error::InternalServerError(inner) => inner.source(),
|
250 - | Error::RequestThrottledError(inner) => inner.source(),
|
251 - | Error::ResourceNotFoundError(inner) => inner.source(),
|
252 - | Error::ServiceQuotaExceededError(inner) => inner.source(),
|
253 - | Error::ValidationError(inner) => inner.source(),
|
254 - | Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
|
398 + | /* ServiceErrorGenerator.kt:119 */ Error::AccessDeniedError(inner) => inner.source(),
|
399 + | /* ServiceErrorGenerator.kt:119 */ Error::ConcurrentLimitExceededError(inner) => inner.source(),
|
400 + | /* ServiceErrorGenerator.kt:119 */ Error::ConflictError(inner) => inner.source(),
|
401 + | /* ServiceErrorGenerator.kt:119 */ Error::InternalServerError(inner) => inner.source(),
|
402 + | /* ServiceErrorGenerator.kt:119 */ Error::RequestThrottledError(inner) => inner.source(),
|
403 + | /* ServiceErrorGenerator.kt:119 */ Error::ResourceNotFoundError(inner) => inner.source(),
|
404 + | /* ServiceErrorGenerator.kt:119 */ Error::ServiceQuotaExceededError(inner) => inner.source(),
|
405 + | /* ServiceErrorGenerator.kt:119 */ Error::ValidationError(inner) => inner.source(),
|
406 + | /* ServiceErrorGenerator.kt:121 */
|
407 + | Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source), /* ServiceErrorGenerator.kt:117 */
|
255 408 | }
|
409 + | /* ServiceErrorGenerator.kt:116 */
|
256 410 | }
|
411 + | /* ServiceErrorGenerator.kt:115 */
|
257 412 | }
|