@@ -51,8 +51,11 @@ public ApiExecutor(ApiClient apiClient, Configuration configuration) {
5151 *
5252 * @param requestBuilder Request configuration
5353 * @return CompletableFuture with API response containing string data
54+ * @throws FgaInvalidParameterException if configuration is invalid
55+ * @throws ApiException if request construction fails
5456 */
55- public CompletableFuture <ApiResponse <String >> send (ApiExecutorRequestBuilder requestBuilder ) {
57+ public CompletableFuture <ApiResponse <String >> send (ApiExecutorRequestBuilder requestBuilder )
58+ throws FgaInvalidParameterException , ApiException {
5659 return send (requestBuilder , String .class );
5760 }
5861
@@ -63,8 +66,11 @@ public CompletableFuture<ApiResponse<String>> send(ApiExecutorRequestBuilder req
6366 * @param requestBuilder Request configuration
6467 * @param responseType Class to deserialize response into
6568 * @return CompletableFuture with API response containing typed data
69+ * @throws FgaInvalidParameterException if configuration is invalid
70+ * @throws ApiException if request construction fails
6671 */
67- public <T > CompletableFuture <ApiResponse <T >> send (ApiExecutorRequestBuilder requestBuilder , Class <T > responseType ) {
72+ public <T > CompletableFuture <ApiResponse <T >> send (ApiExecutorRequestBuilder requestBuilder , Class <T > responseType )
73+ throws FgaInvalidParameterException , ApiException {
6874 if (requestBuilder == null ) {
6975 throw new IllegalArgumentException ("Request builder cannot be null" );
7076 }
@@ -81,7 +87,7 @@ public <T> CompletableFuture<ApiResponse<T>> send(ApiExecutorRequestBuilder requ
8187 return new HttpRequestAttempt <>(httpRequest , methodName , responseType , apiClient , configuration )
8288 .attemptHttpRequest ();
8389
84- } catch (FgaInvalidParameterException | IOException | IllegalArgumentException | ApiException e ) {
90+ } catch (IOException e ) {
8591 return CompletableFuture .failedFuture (new ApiException (e ));
8692 }
8793 }
0 commit comments