Skip to content

Commit e6edc88

Browse files
committed
Fix exception type.
1 parent fc24f63 commit e6edc88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/sdk/server/src/main/java/com/launchdarkly/sdk/server/DefaultFDv2Requestor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.launchdarkly.logging.LDLogger;
44
import com.launchdarkly.sdk.internal.fdv2.payloads.FDv2Event;
55
import com.launchdarkly.sdk.internal.fdv2.sources.Selector;
6+
import com.launchdarkly.sdk.internal.http.HttpErrors;
67
import com.launchdarkly.sdk.internal.http.HttpHelpers;
78
import com.launchdarkly.sdk.internal.http.HttpProperties;
89
import com.launchdarkly.sdk.json.SerializationException;
@@ -117,7 +118,7 @@ public void onResponse(@Nonnull Call call, @Nonnull Response response) {
117118

118119
if (!response.isSuccessful()) {
119120
future.completeExceptionally(
120-
new IOException("FDv2 polling request failed with status code: " + response.code())
121+
new HttpErrors.HttpErrorException(response.code())
121122
);
122123
return;
123124
}

0 commit comments

Comments
 (0)