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 {
|
8 + | pub /* ServiceErrorGenerator.kt:257 */ enum Error {
|
9 + | /* ServiceErrorGenerator.kt:259 */
|
6 10 | #[allow(missing_docs)] // documentation missing in model
|
11 + | /* ServiceErrorGenerator.kt:262 */
|
7 12 | InvalidPokeballError(crate::types::error::InvalidPokeballError),
|
13 + | /* ServiceErrorGenerator.kt:259 */
|
8 14 | #[allow(missing_docs)] // documentation missing in model
|
15 + | /* ServiceErrorGenerator.kt:262 */
|
9 16 | MasterBallUnsuccessful(crate::types::error::MasterBallUnsuccessful),
|
17 + | /* ServiceErrorGenerator.kt:259 */
|
10 18 | #[allow(missing_docs)] // documentation missing in model
|
19 + | /* ServiceErrorGenerator.kt:262 */
|
11 20 | ResourceNotFoundError(crate::types::error::ResourceNotFoundError),
|
12 - | /// Not authorized to access Pokémon storage.
|
21 + | /// /* ServiceErrorGenerator.kt:259 */Not authorized to access Pokémon storage.
|
22 + | /* ServiceErrorGenerator.kt:262 */
|
13 23 | StorageAccessNotAuthorized(crate::types::error::StorageAccessNotAuthorized),
|
24 + | /* ServiceErrorGenerator.kt:259 */
|
14 25 | #[allow(missing_docs)] // documentation missing in model
|
26 + | /* ServiceErrorGenerator.kt:262 */
|
15 27 | ThrottlingError(crate::types::error::ThrottlingError),
|
28 + | /* ServiceErrorGenerator.kt:259 */
|
16 29 | #[allow(missing_docs)] // documentation missing in model
|
30 + | /* ServiceErrorGenerator.kt:262 */
|
17 31 | UnsupportedRegionError(crate::types::error::UnsupportedRegionError),
|
18 - | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
32 + | /// /* ServiceErrorGenerator.kt:259 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
33 + | /* ServiceErrorGenerator.kt:262 */
|
19 34 | ValidationError(crate::types::error::ValidationError),
|
20 - | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
35 + | /// /* ServiceErrorGenerator.kt:264 */An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
36 + | /* ServiceErrorGenerator.kt:320 */
|
21 37 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
22 38 | variable wildcard pattern and check `.code()`:
|
23 39 | \
|
24 40 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
25 41 | \
|
26 42 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
|
27 - | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
43 + | /* ServiceErrorGenerator.kt:266 */
|
44 + | Unhandled(crate::error::sealed_unhandled::Unhandled), /* ServiceErrorGenerator.kt:257 */
|
28 45 | }
|
46 + | /* ServiceErrorGenerator.kt:131 */
|
29 47 | impl ::std::fmt::Display for Error {
|
48 + | /* ServiceErrorGenerator.kt:132 */
|
30 49 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
50 + | /* ServiceErrorGenerator.kt:133 */
|
31 51 | match self {
|
32 - | Error::InvalidPokeballError(inner) => inner.fmt(f),
|
33 - | Error::MasterBallUnsuccessful(inner) => inner.fmt(f),
|
34 - | Error::ResourceNotFoundError(inner) => inner.fmt(f),
|
35 - | Error::StorageAccessNotAuthorized(inner) => inner.fmt(f),
|
36 - | Error::ThrottlingError(inner) => inner.fmt(f),
|
37 - | Error::UnsupportedRegionError(inner) => inner.fmt(f),
|
38 - | Error::ValidationError(inner) => inner.fmt(f),
|
52 + | /* ServiceErrorGenerator.kt:135 */ Error::InvalidPokeballError(inner) => inner.fmt(f),
|
53 + | /* ServiceErrorGenerator.kt:135 */ Error::MasterBallUnsuccessful(inner) => inner.fmt(f),
|
54 + | /* ServiceErrorGenerator.kt:135 */ Error::ResourceNotFoundError(inner) => inner.fmt(f),
|
55 + | /* ServiceErrorGenerator.kt:135 */ Error::StorageAccessNotAuthorized(inner) => inner.fmt(f),
|
56 + | /* ServiceErrorGenerator.kt:135 */ Error::ThrottlingError(inner) => inner.fmt(f),
|
57 + | /* ServiceErrorGenerator.kt:135 */ Error::UnsupportedRegionError(inner) => inner.fmt(f),
|
58 + | /* ServiceErrorGenerator.kt:135 */ Error::ValidationError(inner) => inner.fmt(f),
|
59 + | /* ServiceErrorGenerator.kt:137 */
|
39 60 | Error::Unhandled(_) => {
|
40 61 | if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
|
41 62 | write!(f, "unhandled error ({code})")
|
42 63 | } else {
|
43 64 | f.write_str("unhandled error")
|
44 65 | }
|
66 + | } /* ServiceErrorGenerator.kt:133 */
|
45 67 | }
|
68 + | /* ServiceErrorGenerator.kt:132 */
|
46 69 | }
|
47 - | }
|
70 + | /* ServiceErrorGenerator.kt:131 */
|
48 71 | }
|
72 + | /* ServiceErrorGenerator.kt:154 */
|
49 73 | impl From<::aws_smithy_types::error::operation::BuildError> for Error {
|
50 74 | fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
|
51 75 | Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
52 76 | source: value.into(),
|
53 77 | meta: ::std::default::Default::default(),
|
54 78 | })
|
55 79 | }
|
56 80 | }
|
81 + | /* ServiceErrorGenerator.kt:223 */
|
57 82 | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
|
58 83 | fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
|
59 84 | match self {
|
60 85 | Self::InvalidPokeballError(inner) => inner.meta(),
|
61 86 | Self::MasterBallUnsuccessful(inner) => inner.meta(),
|
62 87 | Self::ResourceNotFoundError(inner) => inner.meta(),
|
63 88 | Self::StorageAccessNotAuthorized(inner) => inner.meta(),
|
64 89 | Self::ThrottlingError(inner) => inner.meta(),
|
65 90 | Self::UnsupportedRegionError(inner) => inner.meta(),
|
66 91 | Self::ValidationError(inner) => inner.meta(),
|
67 92 | Self::Unhandled(inner) => &inner.meta,
|
68 93 | }
|
69 94 | }
|
70 95 | }
|
96 + | /* ServiceErrorGenerator.kt:174 */
|
71 97 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::capture_pokemon::CapturePokemonError, R>> for Error
|
72 98 | where
|
73 99 | R: Send + Sync + std::fmt::Debug + 'static,
|
74 100 | {
|
101 + | /* ServiceErrorGenerator.kt:179 */
|
75 102 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::capture_pokemon::CapturePokemonError, R>) -> Self {
|
103 + | /* ServiceErrorGenerator.kt:184 */
|
76 104 | match err {
|
105 + | /* ServiceErrorGenerator.kt:185 */
|
77 106 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
107 + | /* ServiceErrorGenerator.kt:186 */
|
78 108 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
79 109 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
80 110 | source: err.into(),
|
81 111 | }),
|
112 + | /* ServiceErrorGenerator.kt:184 */
|
82 113 | }
|
114 + | /* ServiceErrorGenerator.kt:179 */
|
83 115 | }
|
116 + | /* ServiceErrorGenerator.kt:174 */
|
84 117 | }
|
118 + | /* ServiceErrorGenerator.kt:202 */
|
85 119 | impl From<crate::operation::capture_pokemon::CapturePokemonError> for Error {
|
120 + | /* ServiceErrorGenerator.kt:203 */
|
86 121 | fn from(err: crate::operation::capture_pokemon::CapturePokemonError) -> Self {
|
122 + | /* ServiceErrorGenerator.kt:204 */
|
87 123 | match err {
|
124 + | /* ServiceErrorGenerator.kt:207 */
|
88 125 | crate::operation::capture_pokemon::CapturePokemonError::ValidationError(inner) => Error::ValidationError(inner),
|
126 + | /* ServiceErrorGenerator.kt:207 */
|
89 127 | crate::operation::capture_pokemon::CapturePokemonError::MasterBallUnsuccessful(inner) => Error::MasterBallUnsuccessful(inner),
|
128 + | /* ServiceErrorGenerator.kt:207 */
|
90 129 | crate::operation::capture_pokemon::CapturePokemonError::InvalidPokeballError(inner) => Error::InvalidPokeballError(inner),
|
130 + | /* ServiceErrorGenerator.kt:207 */
|
91 131 | crate::operation::capture_pokemon::CapturePokemonError::ThrottlingError(inner) => Error::ThrottlingError(inner),
|
132 + | /* ServiceErrorGenerator.kt:207 */
|
92 133 | crate::operation::capture_pokemon::CapturePokemonError::UnsupportedRegionError(inner) => Error::UnsupportedRegionError(inner),
|
134 + | /* ServiceErrorGenerator.kt:212 */
|
93 135 | crate::operation::capture_pokemon::CapturePokemonError::Unhandled(inner) => Error::Unhandled(inner),
|
136 + | /* ServiceErrorGenerator.kt:204 */
|
94 137 | }
|
138 + | /* ServiceErrorGenerator.kt:203 */
|
95 139 | }
|
140 + | /* ServiceErrorGenerator.kt:202 */
|
96 141 | }
|
142 + | /* ServiceErrorGenerator.kt:174 */
|
97 143 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::check_health::CheckHealthError, R>> for Error
|
98 144 | where
|
99 145 | R: Send + Sync + std::fmt::Debug + 'static,
|
100 146 | {
|
147 + | /* ServiceErrorGenerator.kt:179 */
|
101 148 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::check_health::CheckHealthError, R>) -> Self {
|
149 + | /* ServiceErrorGenerator.kt:184 */
|
102 150 | match err {
|
151 + | /* ServiceErrorGenerator.kt:185 */
|
103 152 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
153 + | /* ServiceErrorGenerator.kt:186 */
|
104 154 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
105 155 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
106 156 | source: err.into(),
|
107 157 | }),
|
158 + | /* ServiceErrorGenerator.kt:184 */
|
108 159 | }
|
160 + | /* ServiceErrorGenerator.kt:179 */
|
109 161 | }
|
162 + | /* ServiceErrorGenerator.kt:174 */
|
110 163 | }
|
164 + | /* ServiceErrorGenerator.kt:202 */
|
111 165 | impl From<crate::operation::check_health::CheckHealthError> for Error {
|
166 + | /* ServiceErrorGenerator.kt:203 */
|
112 167 | fn from(err: crate::operation::check_health::CheckHealthError) -> Self {
|
168 + | /* ServiceErrorGenerator.kt:204 */
|
113 169 | match err {
|
170 + | /* ServiceErrorGenerator.kt:212 */
|
114 171 | crate::operation::check_health::CheckHealthError::Unhandled(inner) => Error::Unhandled(inner),
|
172 + | /* ServiceErrorGenerator.kt:204 */
|
115 173 | }
|
174 + | /* ServiceErrorGenerator.kt:203 */
|
116 175 | }
|
176 + | /* ServiceErrorGenerator.kt:202 */
|
117 177 | }
|
178 + | /* ServiceErrorGenerator.kt:174 */
|
118 179 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::do_nothing::DoNothingError, R>> for Error
|
119 180 | where
|
120 181 | R: Send + Sync + std::fmt::Debug + 'static,
|
121 182 | {
|
183 + | /* ServiceErrorGenerator.kt:179 */
|
122 184 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::do_nothing::DoNothingError, R>) -> Self {
|
185 + | /* ServiceErrorGenerator.kt:184 */
|
123 186 | match err {
|
187 + | /* ServiceErrorGenerator.kt:185 */
|
124 188 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
189 + | /* ServiceErrorGenerator.kt:186 */
|
125 190 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
126 191 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
127 192 | source: err.into(),
|
128 193 | }),
|
194 + | /* ServiceErrorGenerator.kt:184 */
|
129 195 | }
|
196 + | /* ServiceErrorGenerator.kt:179 */
|
130 197 | }
|
198 + | /* ServiceErrorGenerator.kt:174 */
|
131 199 | }
|
200 + | /* ServiceErrorGenerator.kt:202 */
|
132 201 | impl From<crate::operation::do_nothing::DoNothingError> for Error {
|
202 + | /* ServiceErrorGenerator.kt:203 */
|
133 203 | fn from(err: crate::operation::do_nothing::DoNothingError) -> Self {
|
204 + | /* ServiceErrorGenerator.kt:204 */
|
134 205 | match err {
|
206 + | /* ServiceErrorGenerator.kt:212 */
|
135 207 | crate::operation::do_nothing::DoNothingError::Unhandled(inner) => Error::Unhandled(inner),
|
208 + | /* ServiceErrorGenerator.kt:204 */
|
136 209 | }
|
210 + | /* ServiceErrorGenerator.kt:203 */
|
137 211 | }
|
212 + | /* ServiceErrorGenerator.kt:202 */
|
138 213 | }
|
214 + | /* ServiceErrorGenerator.kt:174 */
|
139 215 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_pokemon_species::GetPokemonSpeciesError, R>> for Error
|
140 216 | where
|
141 217 | R: Send + Sync + std::fmt::Debug + 'static,
|
142 218 | {
|
219 + | /* ServiceErrorGenerator.kt:179 */
|
143 220 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_pokemon_species::GetPokemonSpeciesError, R>) -> Self {
|
221 + | /* ServiceErrorGenerator.kt:184 */
|
144 222 | match err {
|
223 + | /* ServiceErrorGenerator.kt:185 */
|
145 224 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
225 + | /* ServiceErrorGenerator.kt:186 */
|
146 226 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
147 227 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
148 228 | source: err.into(),
|
149 229 | }),
|
230 + | /* ServiceErrorGenerator.kt:184 */
|
150 231 | }
|
232 + | /* ServiceErrorGenerator.kt:179 */
|
151 233 | }
|
234 + | /* ServiceErrorGenerator.kt:174 */
|
152 235 | }
|
236 + | /* ServiceErrorGenerator.kt:202 */
|
153 237 | impl From<crate::operation::get_pokemon_species::GetPokemonSpeciesError> for Error {
|
238 + | /* ServiceErrorGenerator.kt:203 */
|
154 239 | fn from(err: crate::operation::get_pokemon_species::GetPokemonSpeciesError) -> Self {
|
240 + | /* ServiceErrorGenerator.kt:204 */
|
155 241 | match err {
|
242 + | /* ServiceErrorGenerator.kt:207 */
|
156 243 | crate::operation::get_pokemon_species::GetPokemonSpeciesError::ValidationError(inner) => Error::ValidationError(inner),
|
244 + | /* ServiceErrorGenerator.kt:207 */
|
157 245 | crate::operation::get_pokemon_species::GetPokemonSpeciesError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
|
246 + | /* ServiceErrorGenerator.kt:212 */
|
158 247 | crate::operation::get_pokemon_species::GetPokemonSpeciesError::Unhandled(inner) => Error::Unhandled(inner),
|
248 + | /* ServiceErrorGenerator.kt:204 */
|
159 249 | }
|
250 + | /* ServiceErrorGenerator.kt:203 */
|
160 251 | }
|
252 + | /* ServiceErrorGenerator.kt:202 */
|
161 253 | }
|
254 + | /* ServiceErrorGenerator.kt:174 */
|
162 255 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_server_statistics::GetServerStatisticsError, R>> for Error
|
163 256 | where
|
164 257 | R: Send + Sync + std::fmt::Debug + 'static,
|
165 258 | {
|
259 + | /* ServiceErrorGenerator.kt:179 */
|
166 260 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_server_statistics::GetServerStatisticsError, R>) -> Self {
|
261 + | /* ServiceErrorGenerator.kt:184 */
|
167 262 | match err {
|
263 + | /* ServiceErrorGenerator.kt:185 */
|
168 264 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
265 + | /* ServiceErrorGenerator.kt:186 */
|
169 266 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
170 267 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
171 268 | source: err.into(),
|
172 269 | }),
|
270 + | /* ServiceErrorGenerator.kt:184 */
|
173 271 | }
|
272 + | /* ServiceErrorGenerator.kt:179 */
|
174 273 | }
|
274 + | /* ServiceErrorGenerator.kt:174 */
|
175 275 | }
|
276 + | /* ServiceErrorGenerator.kt:202 */
|
176 277 | impl From<crate::operation::get_server_statistics::GetServerStatisticsError> for Error {
|
278 + | /* ServiceErrorGenerator.kt:203 */
|
177 279 | fn from(err: crate::operation::get_server_statistics::GetServerStatisticsError) -> Self {
|
280 + | /* ServiceErrorGenerator.kt:204 */
|
178 281 | match err {
|
282 + | /* ServiceErrorGenerator.kt:212 */
|
179 283 | crate::operation::get_server_statistics::GetServerStatisticsError::Unhandled(inner) => Error::Unhandled(inner),
|
284 + | /* ServiceErrorGenerator.kt:204 */
|
180 285 | }
|
286 + | /* ServiceErrorGenerator.kt:203 */
|
181 287 | }
|
288 + | /* ServiceErrorGenerator.kt:202 */
|
182 289 | }
|
290 + | /* ServiceErrorGenerator.kt:174 */
|
183 291 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_storage::GetStorageError, R>> for Error
|
184 292 | where
|
185 293 | R: Send + Sync + std::fmt::Debug + 'static,
|
186 294 | {
|
295 + | /* ServiceErrorGenerator.kt:179 */
|
187 296 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_storage::GetStorageError, R>) -> Self {
|
297 + | /* ServiceErrorGenerator.kt:184 */
|
188 298 | match err {
|
299 + | /* ServiceErrorGenerator.kt:185 */
|
189 300 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
301 + | /* ServiceErrorGenerator.kt:186 */
|
190 302 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
191 303 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
192 304 | source: err.into(),
|
193 305 | }),
|
306 + | /* ServiceErrorGenerator.kt:184 */
|
194 307 | }
|
308 + | /* ServiceErrorGenerator.kt:179 */
|
195 309 | }
|
310 + | /* ServiceErrorGenerator.kt:174 */
|
196 311 | }
|
312 + | /* ServiceErrorGenerator.kt:202 */
|
197 313 | impl From<crate::operation::get_storage::GetStorageError> for Error {
|
314 + | /* ServiceErrorGenerator.kt:203 */
|
198 315 | fn from(err: crate::operation::get_storage::GetStorageError) -> Self {
|
316 + | /* ServiceErrorGenerator.kt:204 */
|
199 317 | match err {
|
318 + | /* ServiceErrorGenerator.kt:207 */
|
200 319 | crate::operation::get_storage::GetStorageError::ValidationError(inner) => Error::ValidationError(inner),
|
320 + | /* ServiceErrorGenerator.kt:207 */
|
201 321 | crate::operation::get_storage::GetStorageError::StorageAccessNotAuthorized(inner) => Error::StorageAccessNotAuthorized(inner),
|
322 + | /* ServiceErrorGenerator.kt:207 */
|
202 323 | crate::operation::get_storage::GetStorageError::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
|
324 + | /* ServiceErrorGenerator.kt:212 */
|
203 325 | crate::operation::get_storage::GetStorageError::Unhandled(inner) => Error::Unhandled(inner),
|
326 + | /* ServiceErrorGenerator.kt:204 */
|
204 327 | }
|
328 + | /* ServiceErrorGenerator.kt:203 */
|
205 329 | }
|
330 + | /* ServiceErrorGenerator.kt:202 */
|
206 331 | }
|
332 + | /* ServiceErrorGenerator.kt:174 */
|
207 333 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stream_pokemon_radio::StreamPokemonRadioError, R>> for Error
|
208 334 | where
|
209 335 | R: Send + Sync + std::fmt::Debug + 'static,
|
210 336 | {
|
337 + | /* ServiceErrorGenerator.kt:179 */
|
211 338 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stream_pokemon_radio::StreamPokemonRadioError, R>) -> Self {
|
339 + | /* ServiceErrorGenerator.kt:184 */
|
212 340 | match err {
|
341 + | /* ServiceErrorGenerator.kt:185 */
|
213 342 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
343 + | /* ServiceErrorGenerator.kt:186 */
|
214 344 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
215 345 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
216 346 | source: err.into(),
|
217 347 | }),
|
348 + | /* ServiceErrorGenerator.kt:184 */
|
218 349 | }
|
350 + | /* ServiceErrorGenerator.kt:179 */
|
219 351 | }
|
352 + | /* ServiceErrorGenerator.kt:174 */
|
220 353 | }
|
354 + | /* ServiceErrorGenerator.kt:202 */
|
221 355 | impl From<crate::operation::stream_pokemon_radio::StreamPokemonRadioError> for Error {
|
356 + | /* ServiceErrorGenerator.kt:203 */
|
222 357 | fn from(err: crate::operation::stream_pokemon_radio::StreamPokemonRadioError) -> Self {
|
358 + | /* ServiceErrorGenerator.kt:204 */
|
223 359 | match err {
|
360 + | /* ServiceErrorGenerator.kt:212 */
|
224 361 | crate::operation::stream_pokemon_radio::StreamPokemonRadioError::Unhandled(inner) => Error::Unhandled(inner),
|
362 + | /* ServiceErrorGenerator.kt:204 */
|
225 363 | }
|
364 + | /* ServiceErrorGenerator.kt:203 */
|
226 365 | }
|
366 + | /* ServiceErrorGenerator.kt:202 */
|
227 367 | }
|
368 + | /* ServiceErrorGenerator.kt:174 */
|
228 369 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::AttemptCapturingPokemonEventError, R>> for Error
|
229 370 | where
|
230 371 | R: Send + Sync + std::fmt::Debug + 'static,
|
231 372 | {
|
373 + | /* ServiceErrorGenerator.kt:179 */
|
232 374 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::AttemptCapturingPokemonEventError, R>) -> Self {
|
375 + | /* ServiceErrorGenerator.kt:184 */
|
233 376 | match err {
|
377 + | /* ServiceErrorGenerator.kt:185 */
|
234 378 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
379 + | /* ServiceErrorGenerator.kt:186 */
|
235 380 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
236 381 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
237 382 | source: err.into(),
|
238 383 | }),
|
384 + | /* ServiceErrorGenerator.kt:184 */
|
239 385 | }
|
386 + | /* ServiceErrorGenerator.kt:179 */
|
240 387 | }
|
388 + | /* ServiceErrorGenerator.kt:174 */
|
241 389 | }
|
390 + | /* ServiceErrorGenerator.kt:202 */
|
242 391 | impl From<crate::types::error::AttemptCapturingPokemonEventError> for Error {
|
392 + | /* ServiceErrorGenerator.kt:203 */
|
243 393 | fn from(err: crate::types::error::AttemptCapturingPokemonEventError) -> Self {
|
394 + | /* ServiceErrorGenerator.kt:204 */
|
244 395 | match err {
|
396 + | /* ServiceErrorGenerator.kt:207 */
|
245 397 | crate::types::error::AttemptCapturingPokemonEventError::MasterBallUnsuccessful(inner) => Error::MasterBallUnsuccessful(inner),
|
398 + | /* ServiceErrorGenerator.kt:212 */
|
246 399 | crate::types::error::AttemptCapturingPokemonEventError::Unhandled(inner) => Error::Unhandled(inner),
|
400 + | /* ServiceErrorGenerator.kt:204 */
|
247 401 | }
|
402 + | /* ServiceErrorGenerator.kt:203 */
|
248 403 | }
|
404 + | /* ServiceErrorGenerator.kt:202 */
|
249 405 | }
|
406 + | /* ServiceErrorGenerator.kt:174 */
|
250 407 | impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::CapturePokemonEventsError, R>> for Error
|
251 408 | where
|
252 409 | R: Send + Sync + std::fmt::Debug + 'static,
|
253 410 | {
|
411 + | /* ServiceErrorGenerator.kt:179 */
|
254 412 | fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::CapturePokemonEventsError, R>) -> Self {
|
413 + | /* ServiceErrorGenerator.kt:184 */
|
255 414 | match err {
|
415 + | /* ServiceErrorGenerator.kt:185 */
|
256 416 | ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
|
417 + | /* ServiceErrorGenerator.kt:186 */
|
257 418 | _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
258 419 | meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
|
259 420 | source: err.into(),
|
260 421 | }),
|
422 + | /* ServiceErrorGenerator.kt:184 */
|
261 423 | }
|
424 + | /* ServiceErrorGenerator.kt:179 */
|
262 425 | }
|
426 + | /* ServiceErrorGenerator.kt:174 */
|
263 427 | }
|
428 + | /* ServiceErrorGenerator.kt:202 */
|
264 429 | impl From<crate::types::error::CapturePokemonEventsError> for Error {
|
430 + | /* ServiceErrorGenerator.kt:203 */
|
265 431 | fn from(err: crate::types::error::CapturePokemonEventsError) -> Self {
|
432 + | /* ServiceErrorGenerator.kt:204 */
|
266 433 | match err {
|
434 + | /* ServiceErrorGenerator.kt:207 */
|
267 435 | crate::types::error::CapturePokemonEventsError::InvalidPokeballError(inner) => Error::InvalidPokeballError(inner),
|
436 + | /* ServiceErrorGenerator.kt:207 */
|
268 437 | crate::types::error::CapturePokemonEventsError::ThrottlingError(inner) => Error::ThrottlingError(inner),
|
438 + | /* ServiceErrorGenerator.kt:212 */
|
269 439 | crate::types::error::CapturePokemonEventsError::Unhandled(inner) => Error::Unhandled(inner),
|
440 + | /* ServiceErrorGenerator.kt:204 */
|
270 441 | }
|
442 + | /* ServiceErrorGenerator.kt:203 */
|
271 443 | }
|
444 + | /* ServiceErrorGenerator.kt:202 */
|
272 445 | }
|
446 + | /* ServiceErrorGenerator.kt:115 */
|
273 447 | impl ::std::error::Error for Error {
|
448 + | /* ServiceErrorGenerator.kt:116 */
|
274 449 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
450 + | /* ServiceErrorGenerator.kt:117 */
|
275 451 | match self {
|
276 - | Error::InvalidPokeballError(inner) => inner.source(),
|
277 - | Error::MasterBallUnsuccessful(inner) => inner.source(),
|
278 - | Error::ResourceNotFoundError(inner) => inner.source(),
|
279 - | Error::StorageAccessNotAuthorized(inner) => inner.source(),
|
280 - | Error::ThrottlingError(inner) => inner.source(),
|
281 - | Error::UnsupportedRegionError(inner) => inner.source(),
|
282 - | Error::ValidationError(inner) => inner.source(),
|
283 - | Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
|
284 - | }
|
285 - | }
|
452 + | /* ServiceErrorGenerator.kt:119 */ Error::InvalidPokeballError(inner) => inner.source(),
|
453 + | /* ServiceErrorGenerator.kt:119 */ Error::MasterBallUnsuccessful(inner) => inner.source(),
|
454 + | /* ServiceErrorGenerator.kt:119 */ Error::ResourceNotFoundError(inner) => inner.source(),
|
455 + | /* ServiceErrorGenerator.kt:119 */ Error::StorageAccessNotAuthorized(inner) => inner.source(),
|
456 + | /* ServiceErrorGenerator.kt:119 */ Error::ThrottlingError(inner) => inner.source(),
|
457 + | /* ServiceErrorGenerator.kt:119 */ Error::UnsupportedRegionError(inner) => inner.source(),
|
458 + | /* ServiceErrorGenerator.kt:119 */ Error::ValidationError(inner) => inner.source(),
|
459 + | /* ServiceErrorGenerator.kt:121 */
|
460 + | Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source), /* ServiceErrorGenerator.kt:117 */
|
461 + | }
|
462 + | /* ServiceErrorGenerator.kt:116 */
|
463 + | }
|
464 + | /* ServiceErrorGenerator.kt:115 */
|
286 465 | }
|