@@ -104,7 +104,10 @@ public void createXmlItem(XmlItem xmlItem) throws ApiException {
104104 localVarResponse .body () == null ? null : new String (localVarResponse .body ().readAllBytes ()));
105105 }
106106
107- } catch (IOException | InterruptedException e ) {
107+ } catch (IOException e ) {
108+ throw new ApiException (e );
109+ } catch (InterruptedException e ) {
110+ Thread .currentThread ().interrupt ();
108111 throw new ApiException (e );
109112 }
110113 }
@@ -147,7 +150,10 @@ public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException {
147150 }
148151
149152 return memberVarObjectMapper .readValue (localVarResponse .body (), new TypeReference <Boolean >() {});
150- } catch (IOException | InterruptedException e ) {
153+ } catch (IOException e ) {
154+ throw new ApiException (e );
155+ } catch (InterruptedException e ) {
156+ Thread .currentThread ().interrupt ();
151157 throw new ApiException (e );
152158 }
153159 }
@@ -190,7 +196,10 @@ public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws Ap
190196 }
191197
192198 return memberVarObjectMapper .readValue (localVarResponse .body (), new TypeReference <OuterComposite >() {});
193- } catch (IOException | InterruptedException e ) {
199+ } catch (IOException e ) {
200+ throw new ApiException (e );
201+ } catch (InterruptedException e ) {
202+ Thread .currentThread ().interrupt ();
194203 throw new ApiException (e );
195204 }
196205 }
@@ -233,7 +242,10 @@ public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException
233242 }
234243
235244 return memberVarObjectMapper .readValue (localVarResponse .body (), new TypeReference <BigDecimal >() {});
236- } catch (IOException | InterruptedException e ) {
245+ } catch (IOException e ) {
246+ throw new ApiException (e );
247+ } catch (InterruptedException e ) {
248+ Thread .currentThread ().interrupt ();
237249 throw new ApiException (e );
238250 }
239251 }
@@ -276,7 +288,10 @@ public String fakeOuterStringSerialize(String body) throws ApiException {
276288 }
277289
278290 return memberVarObjectMapper .readValue (localVarResponse .body (), new TypeReference <String >() {});
279- } catch (IOException | InterruptedException e ) {
291+ } catch (IOException e ) {
292+ throw new ApiException (e );
293+ } catch (InterruptedException e ) {
294+ Thread .currentThread ().interrupt ();
280295 throw new ApiException (e );
281296 }
282297 }
@@ -321,7 +336,10 @@ public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException
321336 localVarResponse .body () == null ? null : new String (localVarResponse .body ().readAllBytes ()));
322337 }
323338
324- } catch (IOException | InterruptedException e ) {
339+ } catch (IOException e ) {
340+ throw new ApiException (e );
341+ } catch (InterruptedException e ) {
342+ Thread .currentThread ().interrupt ();
325343 throw new ApiException (e );
326344 }
327345 }
@@ -380,7 +398,10 @@ public void testBodyWithQueryParams(String query, User body) throws ApiException
380398 localVarResponse .body () == null ? null : new String (localVarResponse .body ().readAllBytes ()));
381399 }
382400
383- } catch (IOException | InterruptedException e ) {
401+ } catch (IOException e ) {
402+ throw new ApiException (e );
403+ } catch (InterruptedException e ) {
404+ Thread .currentThread ().interrupt ();
384405 throw new ApiException (e );
385406 }
386407 }
@@ -427,7 +448,10 @@ public Client testClientModel(Client body) throws ApiException {
427448 }
428449
429450 return memberVarObjectMapper .readValue (localVarResponse .body (), new TypeReference <Client >() {});
430- } catch (IOException | InterruptedException e ) {
451+ } catch (IOException e ) {
452+ throw new ApiException (e );
453+ } catch (InterruptedException e ) {
454+ Thread .currentThread ().interrupt ();
431455 throw new ApiException (e );
432456 }
433457 }
@@ -495,7 +519,10 @@ public void testEndpointParameters(BigDecimal number, Double _double, String pat
495519 localVarResponse .body () == null ? null : new String (localVarResponse .body ().readAllBytes ()));
496520 }
497521
498- } catch (IOException | InterruptedException e ) {
522+ } catch (IOException e ) {
523+ throw new ApiException (e );
524+ } catch (InterruptedException e ) {
525+ Thread .currentThread ().interrupt ();
499526 throw new ApiException (e );
500527 }
501528 }
@@ -559,7 +586,10 @@ public void testEnumParameters(List<String> enumHeaderStringArray, String enumHe
559586 localVarResponse .body () == null ? null : new String (localVarResponse .body ().readAllBytes ()));
560587 }
561588
562- } catch (IOException | InterruptedException e ) {
589+ } catch (IOException e ) {
590+ throw new ApiException (e );
591+ } catch (InterruptedException e ) {
592+ Thread .currentThread ().interrupt ();
563593 throw new ApiException (e );
564594 }
565595 }
@@ -633,7 +663,10 @@ public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBoo
633663 localVarResponse .body () == null ? null : new String (localVarResponse .body ().readAllBytes ()));
634664 }
635665
636- } catch (IOException | InterruptedException e ) {
666+ } catch (IOException e ) {
667+ throw new ApiException (e );
668+ } catch (InterruptedException e ) {
669+ Thread .currentThread ().interrupt ();
637670 throw new ApiException (e );
638671 }
639672 }
@@ -678,7 +711,10 @@ public void testInlineAdditionalProperties(Map<String, String> param) throws Api
678711 localVarResponse .body () == null ? null : new String (localVarResponse .body ().readAllBytes ()));
679712 }
680713
681- } catch (IOException | InterruptedException e ) {
714+ } catch (IOException e ) {
715+ throw new ApiException (e );
716+ } catch (InterruptedException e ) {
717+ Thread .currentThread ().interrupt ();
682718 throw new ApiException (e );
683719 }
684720 }
@@ -726,7 +762,10 @@ public void testJsonFormData(String param, String param2) throws ApiException {
726762 localVarResponse .body () == null ? null : new String (localVarResponse .body ().readAllBytes ()));
727763 }
728764
729- } catch (IOException | InterruptedException e ) {
765+ } catch (IOException e ) {
766+ throw new ApiException (e );
767+ } catch (InterruptedException e ) {
768+ Thread .currentThread ().interrupt ();
730769 throw new ApiException (e );
731770 }
732771 }
@@ -802,7 +841,10 @@ public void testQueryParameterCollectionFormat(List<String> pipe, List<String> i
802841 localVarResponse .body () == null ? null : new String (localVarResponse .body ().readAllBytes ()));
803842 }
804843
805- } catch (IOException | InterruptedException e ) {
844+ } catch (IOException e ) {
845+ throw new ApiException (e );
846+ } catch (InterruptedException e ) {
847+ Thread .currentThread ().interrupt ();
806848 throw new ApiException (e );
807849 }
808850 }
0 commit comments