Skip to content

Commit 422e856

Browse files
committed
make network exception internal
1 parent dbed41d commit 422e856

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

features/dd-sdk-android-flags/api/apiSurface

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ data class com.datadog.android.flags.FlagsConfiguration
2828
companion object
2929
interface com.datadog.android.flags.FlagsStateListener
3030
fun onStateChanged(com.datadog.android.flags.model.FlagsClientState)
31-
class com.datadog.android.flags.NetworkRequestFailedException : RuntimeException
32-
constructor(String)
3331
interface com.datadog.android.flags.StateObservable
3432
fun getCurrentState(): com.datadog.android.flags.model.FlagsClientState
3533
fun addListener(FlagsStateListener)

features/dd-sdk-android-flags/api/dd-sdk-android-flags.api

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ public abstract interface class com/datadog/android/flags/FlagsStateListener {
6969
public abstract fun onStateChanged (Lcom/datadog/android/flags/model/FlagsClientState;)V
7070
}
7171

72-
public final class com/datadog/android/flags/NetworkRequestFailedException : java/lang/RuntimeException {
73-
public fun <init> (Ljava/lang/String;)V
74-
}
75-
7672
public abstract interface class com/datadog/android/flags/StateObservable {
7773
public abstract fun addListener (Lcom/datadog/android/flags/FlagsStateListener;)V
7874
public abstract fun getCurrentState ()Lcom/datadog/android/flags/model/FlagsClientState;

features/dd-sdk-android-flags/src/main/kotlin/com/datadog/android/flags/NetworkRequestFailedException.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ package com.datadog.android.flags
99
/**
1010
* Exception thrown when a network request for flag evaluations fails.
1111
*
12-
* This exception is used to communicate network failures when updating evaluation contexts.
13-
* It provides a clear signal that the failure was due to network connectivity issues rather
14-
* than application logic errors.
12+
* This exception is used internally to communicate network failures when updating evaluation
13+
* contexts. It provides a clear signal that the failure was due to network connectivity issues
14+
* rather than application logic errors.
1515
*
1616
* @param message A descriptive message about the network failure
1717
*/
18-
class NetworkRequestFailedException(message: String) : RuntimeException(message)
18+
internal class NetworkRequestFailedException(message: String) : RuntimeException(message)

0 commit comments

Comments
 (0)