You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: codegen/src/test/resources/software/amazon/awssdk/codegen/poet/client/sra/test-aws-json-async-client-class.java
+28-14Lines changed: 28 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -151,7 +151,8 @@ public JsonUtilities utilities() {
151
151
* @param aPostOperationRequest
152
152
* @return A Java Future containing the result of the APostOperation operation returned by the service.<br/>
153
153
* The CompletableFuture returned by this method can be completed exceptionally with the following
154
-
* exceptions.
154
+
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
155
+
* {@link Throwable#getCause} to retrieve the underlying exception.
155
156
* <ul>
156
157
* <li>InvalidInputException The request was rejected because an invalid or out-of-range value was supplied
157
158
* for an input parameter.</li>
@@ -215,7 +216,8 @@ public CompletableFuture<APostOperationResponse> aPostOperation(APostOperationRe
215
216
* @param aPostOperationWithOutputRequest
216
217
* @return A Java Future containing the result of the APostOperationWithOutput operation returned by the service.<br/>
217
218
* The CompletableFuture returned by this method can be completed exceptionally with the following
218
-
* exceptions.
219
+
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
220
+
* {@link Throwable#getCause} to retrieve the underlying exception.
219
221
* <ul>
220
222
* <li>InvalidInputException The request was rejected because an invalid or out-of-range value was supplied
221
223
* for an input parameter.</li>
@@ -276,7 +278,8 @@ public CompletableFuture<APostOperationWithOutputResponse> aPostOperationWithOut
276
278
* @param eventStreamOperationRequest
277
279
* @return A Java Future containing the result of the EventStreamOperation operation returned by the service.<br/>
278
280
* The CompletableFuture returned by this method can be completed exceptionally with the following
279
-
* exceptions.
281
+
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
282
+
* {@link Throwable#getCause} to retrieve the underlying exception.
280
283
* <ul>
281
284
* <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
282
285
* Can be used for catch all scenarios.</li>
@@ -368,7 +371,8 @@ public CompletableFuture<Void> eventStreamOperation(EventStreamOperationRequest
368
371
* @return A Java Future containing the result of the EventStreamOperationWithOnlyInput operation returned by the
369
372
* service.<br/>
370
373
* The CompletableFuture returned by this method can be completed exceptionally with the following
371
-
* exceptions.
374
+
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
375
+
* {@link Throwable#getCause} to retrieve the underlying exception.
372
376
* <ul>
373
377
* <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
374
378
* Can be used for catch all scenarios.</li>
@@ -435,7 +439,8 @@ public CompletableFuture<EventStreamOperationWithOnlyInputResponse> eventStreamO
435
439
* @return A Java Future containing the result of the EventStreamOperationWithOnlyOutput operation returned by the
436
440
* service.<br/>
437
441
* The CompletableFuture returned by this method can be completed exceptionally with the following
438
-
* exceptions.
442
+
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
443
+
* {@link Throwable#getCause} to retrieve the underlying exception.
439
444
* <ul>
440
445
* <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
441
446
* Can be used for catch all scenarios.</li>
@@ -522,7 +527,8 @@ public CompletableFuture<Void> eventStreamOperationWithOnlyOutput(
522
527
* @param getWithoutRequiredMembersRequest
523
528
* @return A Java Future containing the result of the GetWithoutRequiredMembers operation returned by the service.<br/>
524
529
* The CompletableFuture returned by this method can be completed exceptionally with the following
525
-
* exceptions.
530
+
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
531
+
* {@link Throwable#getCause} to retrieve the underlying exception.
526
532
* <ul>
527
533
* <li>InvalidInputException The request was rejected because an invalid or out-of-range value was supplied
528
534
* for an input parameter.</li>
@@ -583,7 +589,8 @@ public CompletableFuture<GetWithoutRequiredMembersResponse> getWithoutRequiredMe
583
589
* @return A Java Future containing the result of the OperationWithChecksumRequired operation returned by the
584
590
* service.<br/>
585
591
* The CompletableFuture returned by this method can be completed exceptionally with the following
586
-
* exceptions.
592
+
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
593
+
* {@link Throwable#getCause} to retrieve the underlying exception.
587
594
* <ul>
588
595
* <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
589
596
* Can be used for catch all scenarios.</li>
@@ -645,7 +652,8 @@ public CompletableFuture<OperationWithChecksumRequiredResponse> operationWithChe
645
652
* @param operationWithNoneAuthTypeRequest
646
653
* @return A Java Future containing the result of the OperationWithNoneAuthType operation returned by the service.<br/>
647
654
* The CompletableFuture returned by this method can be completed exceptionally with the following
648
-
* exceptions.
655
+
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
656
+
* {@link Throwable#getCause} to retrieve the underlying exception.
649
657
* <ul>
650
658
* <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
651
659
* Can be used for catch all scenarios.</li>
@@ -704,7 +712,8 @@ public CompletableFuture<OperationWithNoneAuthTypeResponse> operationWithNoneAut
704
712
* @return A Java Future containing the result of the OperationWithRequestCompression operation returned by the
705
713
* service.<br/>
706
714
* The CompletableFuture returned by this method can be completed exceptionally with the following
707
-
* exceptions.
715
+
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
716
+
* {@link Throwable#getCause} to retrieve the underlying exception.
708
717
* <ul>
709
718
* <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
710
719
* Can be used for catch all scenarios.</li>
@@ -768,7 +777,8 @@ public CompletableFuture<OperationWithRequestCompressionResponse> operationWithR
768
777
* @return A Java Future containing the result of the PaginatedOperationWithResultKey operation returned by the
769
778
* service.<br/>
770
779
* The CompletableFuture returned by this method can be completed exceptionally with the following
771
-
* exceptions.
780
+
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
781
+
* {@link Throwable#getCause} to retrieve the underlying exception.
772
782
* <ul>
773
783
* <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
774
784
* Can be used for catch all scenarios.</li>
@@ -827,7 +837,8 @@ public CompletableFuture<PaginatedOperationWithResultKeyResponse> paginatedOpera
827
837
* @return A Java Future containing the result of the PaginatedOperationWithoutResultKey operation returned by the
828
838
* service.<br/>
829
839
* The CompletableFuture returned by this method can be completed exceptionally with the following
830
-
* exceptions.
840
+
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
841
+
* {@link Throwable#getCause} to retrieve the underlying exception.
831
842
* <ul>
832
843
* <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
833
844
* Can be used for catch all scenarios.</li>
@@ -890,7 +901,8 @@ public CompletableFuture<PaginatedOperationWithoutResultKeyResponse> paginatedOp
890
901
* uploading from a file. The service documentation for the request content is as follows 'This be a stream'
891
902
* @return A Java Future containing the result of the StreamingInputOperation operation returned by the service.<br/>
892
903
* The CompletableFuture returned by this method can be completed exceptionally with the following
893
-
* exceptions.
904
+
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
905
+
* {@link Throwable#getCause} to retrieve the underlying exception.
894
906
* <ul>
895
907
* <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
896
908
* Can be used for catch all scenarios.</li>
@@ -962,7 +974,8 @@ public CompletableFuture<StreamingInputOperationResponse> streamingInputOperatio
962
974
* the response content is as follows 'This be a stream'.
963
975
* @return A future to the transformed result of the AsyncResponseTransformer.<br/>
964
976
* The CompletableFuture returned by this method can be completed exceptionally with the following
965
-
* exceptions.
977
+
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
978
+
* {@link Throwable#getCause} to retrieve the underlying exception.
966
979
* <ul>
967
980
* <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
968
981
* Can be used for catch all scenarios.</li>
@@ -1047,7 +1060,8 @@ public <ReturnT> CompletableFuture<ReturnT> streamingInputOutputOperation(
1047
1060
* the response content is as follows 'This be a stream'.
1048
1061
* @return A future to the transformed result of the AsyncResponseTransformer.<br/>
1049
1062
* The CompletableFuture returned by this method can be completed exceptionally with the following
1050
-
* exceptions.
1063
+
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
1064
+
* {@link Throwable#getCause} to retrieve the underlying exception.
1051
1065
* <ul>
1052
1066
* <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
0 commit comments