Skip to content

Commit da659d7

Browse files
authored
[Ai] Expose APINotConfiguredException in the public API (#7259)
The exception was added in #7233 but was mistakenly marked as internal.
1 parent 628a6c6 commit da659d7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

firebase-ai/api.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ package com.google.firebase.ai.java {
157157

158158
package com.google.firebase.ai.type {
159159

160+
public final class APINotConfiguredException extends com.google.firebase.ai.type.FirebaseAIException {
161+
}
162+
160163
public final class AudioRecordInitializationFailedException extends com.google.firebase.ai.type.FirebaseAIException {
161164
ctor public AudioRecordInitializationFailedException(String message);
162165
}

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Exceptions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public class UnsupportedUserLocationException internal constructor(cause: Throwa
158158
* [steps](https://firebase.google.com/docs/ai-logic/faq-and-troubleshooting?api=dev#error-genai-config-not-found)
159159
* to enable the Gemini Developer API.
160160
*/
161-
internal class APINotConfiguredException internal constructor(cause: Throwable? = null) :
161+
public class APINotConfiguredException internal constructor(cause: Throwable? = null) :
162162
FirebaseAIException("Gemini Developer API not enabled in Firebase console.", cause)
163163

164164
/**

0 commit comments

Comments
 (0)