1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* CodegenDelegator.kt:255 */
|
2 3 | pub use crate::types::error::_unsupported_region_error::UnsupportedRegionError;
|
3 4 |
|
5 + | /* CodegenDelegator.kt:255 */
|
4 6 | pub use crate::types::error::_throttling_error::ThrottlingError;
|
5 7 |
|
8 + | /* CodegenDelegator.kt:255 */
|
6 9 | pub use crate::types::error::_invalid_pokeball_error::InvalidPokeballError;
|
7 10 |
|
11 + | /* CodegenDelegator.kt:255 */
|
8 12 | pub use crate::types::error::_master_ball_unsuccessful::MasterBallUnsuccessful;
|
9 13 |
|
14 + | /* CodegenDelegator.kt:255 */
|
10 15 | pub use crate::types::error::_validation_exception::ValidationError;
|
11 16 |
|
17 + | /* OperationErrorGenerator.kt:79 */
|
12 18 | /// Error type for the `CapturePokemonEventsError` operation.
|
19 + | /* RustType.kt:516 */
|
13 20 | #[non_exhaustive]
|
21 + | /* RustType.kt:516 */
|
14 22 | #[derive(::std::fmt::Debug)]
|
15 - | pub enum CapturePokemonEventsError {
|
23 + | pub /* OperationErrorGenerator.kt:81 */ enum CapturePokemonEventsError {
|
24 + | /* OperationErrorGenerator.kt:83 */
|
16 25 | #[allow(missing_docs)] // documentation missing in model
|
26 + | /* OperationErrorGenerator.kt:86 */
|
17 27 | InvalidPokeballError(crate::types::error::InvalidPokeballError),
|
28 + | /* OperationErrorGenerator.kt:83 */
|
18 29 | #[allow(missing_docs)] // documentation missing in model
|
30 + | /* OperationErrorGenerator.kt:86 */
|
19 31 | ThrottlingError(crate::types::error::ThrottlingError),
|
32 + | /* OperationErrorGenerator.kt:88 */
|
20 33 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
21 34 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
22 35 | variable wildcard pattern and check `.code()`:
|
23 36 | \
|
24 37 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
25 38 | \
|
26 39 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-CapturePokemonEventsError) for what information is available for the error.")]
|
27 40 | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
41 + | /* OperationErrorGenerator.kt:81 */
|
28 42 | }
|
43 + | /* OperationErrorGenerator.kt:218 */
|
29 44 | impl CapturePokemonEventsError {
|
45 + | /* OperationErrorGenerator.kt:219 */
|
30 46 | /// Creates the `CapturePokemonEventsError::Unhandled` variant from any error type.
|
31 47 | pub fn unhandled(
|
32 48 | err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
|
33 49 | ) -> Self {
|
34 50 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
35 51 | source: err.into(),
|
36 52 | meta: ::std::default::Default::default(),
|
37 53 | })
|
38 54 | }
|
39 55 |
|
40 56 | /// Creates the `CapturePokemonEventsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
|
41 57 | pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
|
42 58 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
43 59 | source: err.clone().into(),
|
44 60 | meta: err,
|
45 61 | })
|
46 62 | }
|
47 - | ///
|
63 + | /// /* OperationErrorGenerator.kt:236 */
|
48 64 | /// Returns error metadata, which includes the error code, message,
|
49 65 | /// request ID, and potentially additional information.
|
50 66 | ///
|
67 + | /* OperationErrorGenerator.kt:242 */
|
51 68 | pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
69 + | /* OperationErrorGenerator.kt:243 */
|
52 70 | match self {
|
71 + | /* OperationErrorGenerator.kt:246 */
|
53 72 | Self::InvalidPokeballError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
54 - | Self::ThrottlingError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
55 - | Self::Unhandled(e) => &e.meta,
|
73 + | /* OperationErrorGenerator.kt:246 */ Self::ThrottlingError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
74 + | /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
|
75 + | /* OperationErrorGenerator.kt:243 */
|
56 76 | }
|
77 + | /* OperationErrorGenerator.kt:242 */
|
57 78 | }
|
79 + | /* OperationErrorGenerator.kt:257 */
|
58 80 | /// Returns `true` if the error kind is `CapturePokemonEventsError::InvalidPokeballError`.
|
81 + | /* OperationErrorGenerator.kt:258 */
|
59 82 | pub fn is_invalid_pokeball_error(&self) -> bool {
|
83 + | /* OperationErrorGenerator.kt:259 */
|
60 84 | matches!(self, Self::InvalidPokeballError(_))
|
85 + | /* OperationErrorGenerator.kt:258 */
|
61 86 | }
|
87 + | /* OperationErrorGenerator.kt:257 */
|
62 88 | /// Returns `true` if the error kind is `CapturePokemonEventsError::ThrottlingError`.
|
89 + | /* OperationErrorGenerator.kt:258 */
|
63 90 | pub fn is_throttling_error(&self) -> bool {
|
91 + | /* OperationErrorGenerator.kt:259 */
|
64 92 | matches!(self, Self::ThrottlingError(_))
|
93 + | /* OperationErrorGenerator.kt:258 */
|
65 94 | }
|
95 + | /* OperationErrorGenerator.kt:218 */
|
66 96 | }
|
97 + | /* OperationErrorGenerator.kt:269 */
|
67 98 | impl ::std::error::Error for CapturePokemonEventsError {
|
99 + | /* OperationErrorGenerator.kt:270 */
|
68 100 | fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
101 + | /* OperationErrorGenerator.kt:318 */
|
69 102 | match self {
|
70 - | Self::InvalidPokeballError(_inner) => ::std::option::Option::Some(_inner),
|
71 - | Self::ThrottlingError(_inner) => ::std::option::Option::Some(_inner),
|
72 - | Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
|
103 + | /* OperationErrorGenerator.kt:321 */
|
104 + | Self::InvalidPokeballError(_inner) =>
|
105 + | /* OperationErrorGenerator.kt:283 */
|
106 + | {
|
107 + | ::std::option::Option::Some(_inner)
|
108 + | }
|
109 + | ,
|
110 + | /* OperationErrorGenerator.kt:321 */
|
111 + | Self::ThrottlingError(_inner) =>
|
112 + | /* OperationErrorGenerator.kt:283 */
|
113 + | {
|
114 + | ::std::option::Option::Some(_inner)
|
115 + | }
|
116 + | ,
|
117 + | /* OperationErrorGenerator.kt:326 */
|
118 + | Self::Unhandled(_inner) => {
|
119 + | /* OperationErrorGenerator.kt:279 */
|
120 + | ::std::option::Option::Some(&*_inner.source)
|
121 + | /* OperationErrorGenerator.kt:326 */
|
122 + | } /* OperationErrorGenerator.kt:318 */
|
73 123 | }
|
124 + | /* OperationErrorGenerator.kt:270 */
|
74 125 | }
|
126 + | /* OperationErrorGenerator.kt:269 */
|
75 127 | }
|
128 + | /* OperationErrorGenerator.kt:133 */
|
76 129 | impl ::std::fmt::Display for CapturePokemonEventsError {
|
130 + | /* OperationErrorGenerator.kt:134 */
|
77 131 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
132 + | /* OperationErrorGenerator.kt:318 */
|
78 133 | match self {
|
79 - | Self::InvalidPokeballError(_inner) => _inner.fmt(f),
|
80 - | Self::ThrottlingError(_inner) => _inner.fmt(f),
|
134 + | /* OperationErrorGenerator.kt:321 */
|
135 + | Self::InvalidPokeballError(_inner) =>
|
136 + | /* OperationErrorGenerator.kt:151 */
|
137 + | {
|
138 + | _inner.fmt(f)
|
139 + | }
|
140 + | ,
|
141 + | /* OperationErrorGenerator.kt:321 */
|
142 + | Self::ThrottlingError(_inner) =>
|
143 + | /* OperationErrorGenerator.kt:151 */
|
144 + | {
|
145 + | _inner.fmt(f)
|
146 + | }
|
147 + | ,
|
148 + | /* OperationErrorGenerator.kt:326 */
|
81 149 | Self::Unhandled(_inner) => {
|
150 + | /* OperationErrorGenerator.kt:139 */
|
82 151 | if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
|
83 152 | write!(f, "unhandled error ({code})")
|
84 153 | } else {
|
85 154 | f.write_str("unhandled error")
|
86 155 | }
|
87 - | }
|
156 + | /* OperationErrorGenerator.kt:326 */
|
157 + | } /* OperationErrorGenerator.kt:318 */
|
88 158 | }
|
159 + | /* OperationErrorGenerator.kt:134 */
|
89 160 | }
|
161 + | /* OperationErrorGenerator.kt:133 */
|
90 162 | }
|
163 + | /* OperationErrorGenerator.kt:182 */
|
91 164 | impl ::aws_smithy_types::retry::ProvideErrorKind for CapturePokemonEventsError {
|
165 + | /* OperationErrorGenerator.kt:186 */
|
92 166 | fn code(&self) -> ::std::option::Option<&str> {
|
167 + | /* OperationErrorGenerator.kt:187 */
|
93 168 | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
|
169 + | /* OperationErrorGenerator.kt:186 */
|
94 170 | }
|
171 + | /* OperationErrorGenerator.kt:190 */
|
95 172 | fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
|
173 + | /* OperationErrorGenerator.kt:197 */
|
96 174 | ::std::option::Option::None
|
175 + | /* OperationErrorGenerator.kt:190 */
|
97 176 | }
|
177 + | /* OperationErrorGenerator.kt:182 */
|
98 178 | }
|
179 + | /* OperationErrorGenerator.kt:163 */
|
99 180 | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CapturePokemonEventsError {
|
181 + | /* OperationErrorGenerator.kt:164 */
|
100 182 | fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
183 + | /* OperationErrorGenerator.kt:318 */
|
101 184 | match self {
|
102 - | Self::InvalidPokeballError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
103 - | Self::ThrottlingError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
104 - | Self::Unhandled(_inner) => &_inner.meta,
|
185 + | /* OperationErrorGenerator.kt:321 */
|
186 + | Self::InvalidPokeballError(_inner) =>
|
187 + | /* OperationErrorGenerator.kt:169 */
|
188 + | {
|
189 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
190 + | }
|
191 + | ,
|
192 + | /* OperationErrorGenerator.kt:321 */
|
193 + | Self::ThrottlingError(_inner) =>
|
194 + | /* OperationErrorGenerator.kt:169 */
|
195 + | {
|
196 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
197 + | }
|
198 + | ,
|
199 + | /* OperationErrorGenerator.kt:326 */
|
200 + | Self::Unhandled(_inner) => {
|
201 + | /* OperationErrorGenerator.kt:168 */
|
202 + | &_inner.meta
|
203 + | /* OperationErrorGenerator.kt:326 */
|
204 + | } /* OperationErrorGenerator.kt:318 */
|
105 205 | }
|
206 + | /* OperationErrorGenerator.kt:164 */
|
106 207 | }
|
208 + | /* OperationErrorGenerator.kt:163 */
|
107 209 | }
|
210 + | /* OperationErrorGenerator.kt:109 */
|
108 211 | impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for CapturePokemonEventsError {
|
212 + | /* OperationErrorGenerator.kt:110 */
|
109 213 | fn create_unhandled_error(
|
110 214 | source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
|
111 215 | meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
|
112 216 | ) -> Self {
|
217 + | /* OperationErrorGenerator.kt:121 */
|
113 218 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
114 219 | source,
|
115 220 | meta: meta.unwrap_or_default(),
|
116 221 | })
|
222 + | /* OperationErrorGenerator.kt:110 */
|
117 223 | }
|
224 + | /* OperationErrorGenerator.kt:109 */
|
118 225 | }
|
119 226 |
|
227 + | /* OperationErrorGenerator.kt:79 */
|
120 228 | /// Error type for the `AttemptCapturingPokemonEventError` operation.
|
229 + | /* RustType.kt:516 */
|
121 230 | #[non_exhaustive]
|
231 + | /* RustType.kt:516 */
|
122 232 | #[derive(::std::fmt::Debug)]
|
123 - | pub enum AttemptCapturingPokemonEventError {
|
233 + | pub /* OperationErrorGenerator.kt:81 */ enum AttemptCapturingPokemonEventError {
|
234 + | /* OperationErrorGenerator.kt:83 */
|
124 235 | #[allow(missing_docs)] // documentation missing in model
|
236 + | /* OperationErrorGenerator.kt:86 */
|
125 237 | MasterBallUnsuccessful(crate::types::error::MasterBallUnsuccessful),
|
238 + | /* OperationErrorGenerator.kt:88 */
|
126 239 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
127 240 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
128 241 | variable wildcard pattern and check `.code()`:
|
129 242 | \
|
130 243 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
131 244 | \
|
132 245 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-AttemptCapturingPokemonEventError) for what information is available for the error.")]
|
133 246 | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
247 + | /* OperationErrorGenerator.kt:81 */
|
134 248 | }
|
249 + | /* OperationErrorGenerator.kt:218 */
|
135 250 | impl AttemptCapturingPokemonEventError {
|
251 + | /* OperationErrorGenerator.kt:219 */
|
136 252 | /// Creates the `AttemptCapturingPokemonEventError::Unhandled` variant from any error type.
|
137 253 | pub fn unhandled(
|
138 254 | err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
|
139 255 | ) -> Self {
|
140 256 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
141 257 | source: err.into(),
|
142 258 | meta: ::std::default::Default::default(),
|
143 259 | })
|
144 260 | }
|
145 261 |
|
146 262 | /// Creates the `AttemptCapturingPokemonEventError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
|
147 263 | pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
|
148 264 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
149 265 | source: err.clone().into(),
|
150 266 | meta: err,
|
151 267 | })
|
152 268 | }
|
153 - | ///
|
269 + | /// /* OperationErrorGenerator.kt:236 */
|
154 270 | /// Returns error metadata, which includes the error code, message,
|
155 271 | /// request ID, and potentially additional information.
|
156 272 | ///
|
273 + | /* OperationErrorGenerator.kt:242 */
|
157 274 | pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
275 + | /* OperationErrorGenerator.kt:243 */
|
158 276 | match self {
|
277 + | /* OperationErrorGenerator.kt:246 */
|
159 278 | Self::MasterBallUnsuccessful(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
160 - | Self::Unhandled(e) => &e.meta,
|
279 + | /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
|
280 + | /* OperationErrorGenerator.kt:243 */
|
161 281 | }
|
282 + | /* OperationErrorGenerator.kt:242 */
|
162 283 | }
|
284 + | /* OperationErrorGenerator.kt:257 */
|
163 285 | /// Returns `true` if the error kind is `AttemptCapturingPokemonEventError::MasterBallUnsuccessful`.
|
286 + | /* OperationErrorGenerator.kt:258 */
|
164 287 | pub fn is_master_ball_unsuccessful(&self) -> bool {
|
288 + | /* OperationErrorGenerator.kt:259 */
|
165 289 | matches!(self, Self::MasterBallUnsuccessful(_))
|
290 + | /* OperationErrorGenerator.kt:258 */
|
166 291 | }
|
292 + | /* OperationErrorGenerator.kt:218 */
|
167 293 | }
|
294 + | /* OperationErrorGenerator.kt:269 */
|
168 295 | impl ::std::error::Error for AttemptCapturingPokemonEventError {
|
296 + | /* OperationErrorGenerator.kt:270 */
|
169 297 | fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
298 + | /* OperationErrorGenerator.kt:318 */
|
170 299 | match self {
|
171 - | Self::MasterBallUnsuccessful(_inner) => ::std::option::Option::Some(_inner),
|
172 - | Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
|
300 + | /* OperationErrorGenerator.kt:321 */
|
301 + | Self::MasterBallUnsuccessful(_inner) =>
|
302 + | /* OperationErrorGenerator.kt:283 */
|
303 + | {
|
304 + | ::std::option::Option::Some(_inner)
|
305 + | }
|
306 + | ,
|
307 + | /* OperationErrorGenerator.kt:326 */
|
308 + | Self::Unhandled(_inner) => {
|
309 + | /* OperationErrorGenerator.kt:279 */
|
310 + | ::std::option::Option::Some(&*_inner.source)
|
311 + | /* OperationErrorGenerator.kt:326 */
|
312 + | } /* OperationErrorGenerator.kt:318 */
|
173 313 | }
|
314 + | /* OperationErrorGenerator.kt:270 */
|
174 315 | }
|
316 + | /* OperationErrorGenerator.kt:269 */
|
175 317 | }
|
318 + | /* OperationErrorGenerator.kt:133 */
|
176 319 | impl ::std::fmt::Display for AttemptCapturingPokemonEventError {
|
320 + | /* OperationErrorGenerator.kt:134 */
|
177 321 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
322 + | /* OperationErrorGenerator.kt:318 */
|
178 323 | match self {
|
179 - | Self::MasterBallUnsuccessful(_inner) => _inner.fmt(f),
|
324 + | /* OperationErrorGenerator.kt:321 */
|
325 + | Self::MasterBallUnsuccessful(_inner) =>
|
326 + | /* OperationErrorGenerator.kt:151 */
|
327 + | {
|
328 + | _inner.fmt(f)
|
329 + | }
|
330 + | ,
|
331 + | /* OperationErrorGenerator.kt:326 */
|
180 332 | Self::Unhandled(_inner) => {
|
333 + | /* OperationErrorGenerator.kt:139 */
|
181 334 | if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
|
182 335 | write!(f, "unhandled error ({code})")
|
183 336 | } else {
|
184 337 | f.write_str("unhandled error")
|
185 338 | }
|
186 - | }
|
339 + | /* OperationErrorGenerator.kt:326 */
|
340 + | } /* OperationErrorGenerator.kt:318 */
|
187 341 | }
|
342 + | /* OperationErrorGenerator.kt:134 */
|
188 343 | }
|
344 + | /* OperationErrorGenerator.kt:133 */
|
189 345 | }
|
346 + | /* OperationErrorGenerator.kt:182 */
|
190 347 | impl ::aws_smithy_types::retry::ProvideErrorKind for AttemptCapturingPokemonEventError {
|
348 + | /* OperationErrorGenerator.kt:186 */
|
191 349 | fn code(&self) -> ::std::option::Option<&str> {
|
350 + | /* OperationErrorGenerator.kt:187 */
|
192 351 | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
|
352 + | /* OperationErrorGenerator.kt:186 */
|
193 353 | }
|
354 + | /* OperationErrorGenerator.kt:190 */
|
194 355 | fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
|
356 + | /* OperationErrorGenerator.kt:197 */
|
195 357 | ::std::option::Option::None
|
358 + | /* OperationErrorGenerator.kt:190 */
|
196 359 | }
|
360 + | /* OperationErrorGenerator.kt:182 */
|
197 361 | }
|
362 + | /* OperationErrorGenerator.kt:163 */
|
198 363 | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for AttemptCapturingPokemonEventError {
|
364 + | /* OperationErrorGenerator.kt:164 */
|
199 365 | fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
366 + | /* OperationErrorGenerator.kt:318 */
|
200 367 | match self {
|
201 - | Self::MasterBallUnsuccessful(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
202 - | Self::Unhandled(_inner) => &_inner.meta,
|
368 + | /* OperationErrorGenerator.kt:321 */
|
369 + | Self::MasterBallUnsuccessful(_inner) =>
|
370 + | /* OperationErrorGenerator.kt:169 */
|
371 + | {
|
372 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
373 + | }
|
374 + | ,
|
375 + | /* OperationErrorGenerator.kt:326 */
|
376 + | Self::Unhandled(_inner) => {
|
377 + | /* OperationErrorGenerator.kt:168 */
|
378 + | &_inner.meta
|
379 + | /* OperationErrorGenerator.kt:326 */
|
380 + | } /* OperationErrorGenerator.kt:318 */
|
203 381 | }
|
382 + | /* OperationErrorGenerator.kt:164 */
|
204 383 | }
|
384 + | /* OperationErrorGenerator.kt:163 */
|
205 385 | }
|
386 + | /* OperationErrorGenerator.kt:109 */
|
206 387 | impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for AttemptCapturingPokemonEventError {
|
388 + | /* OperationErrorGenerator.kt:110 */
|
207 389 | fn create_unhandled_error(
|
208 390 | source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
|
209 391 | meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
|
210 392 | ) -> Self {
|
393 + | /* OperationErrorGenerator.kt:121 */
|
211 394 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
212 395 | source,
|
213 396 | meta: meta.unwrap_or_default(),
|
214 397 | })
|
398 + | /* OperationErrorGenerator.kt:110 */
|
215 399 | }
|
400 + | /* OperationErrorGenerator.kt:109 */
|
216 401 | }
|
217 402 |
|
403 + | /* RustModule.kt:172 */
|
218 404 | mod _invalid_pokeball_error;
|
219 405 |
|
406 + | /* RustModule.kt:172 */
|
220 407 | mod _master_ball_unsuccessful;
|
221 408 |
|
409 + | /* RustModule.kt:172 */
|
222 410 | mod _throttling_error;
|
223 411 |
|
412 + | /* RustModule.kt:172 */
|
224 413 | mod _unsupported_region_error;
|
225 414 |
|
415 + | /* RustModule.kt:172 */
|
226 416 | mod _validation_exception;
|
227 417 |
|
228 - | /// Builders
|
418 + | /// /* CodegenDelegator.kt:51 */Builders
|
229 419 | pub mod builders;
|