Skip to content

Commit 9f22f2f

Browse files
committed
feat: address coderabbit comments
1 parent 7bd70ff commit 9f22f2f

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/main/java/dev/openfga/sdk/api/client/ApiExecutorRequestBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public ApiExecutorRequestBuilder body(Object body) {
116116
}
117117

118118
/**
119-
* Finalises the builder. Must be called before passing to {@link ApiExecutor#send}.
119+
* Terminal step of the fluent builder chain.
120120
*
121121
* @return This builder instance
122122
*/

src/main/java/dev/openfga/sdk/api/client/StreamingApiExecutor.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import dev.openfga.sdk.api.configuration.Configuration;
88
import dev.openfga.sdk.api.model.StreamResult;
99
import dev.openfga.sdk.errors.ApiException;
10-
import dev.openfga.sdk.errors.FgaInvalidParameterException;
11-
import java.io.IOException;
1210
import java.util.concurrent.CompletableFuture;
1311
import java.util.function.Consumer;
1412
import javax.annotation.Nullable;
@@ -127,7 +125,7 @@ public CompletableFuture<Void> stream(
127125
configuration.assertValid();
128126
return processStreamingResponse(
129127
requestBuilder.buildHttpRequest(configuration, apiClient), consumer, errorConsumer);
130-
} catch (FgaInvalidParameterException | IOException | IllegalArgumentException e) {
128+
} catch (Exception e) {
131129
ApiException wrapped = new ApiException(e);
132130
if (errorConsumer != null) {
133131
errorConsumer.accept(wrapped);

0 commit comments

Comments
 (0)