FirebaseAIException
public abstract class FirebaseAIException extends RuntimeException
| java.lang.Object | ||||
| ↳ | kotlin.Throwable | |||
| ↳ | java.lang.Exception | |||
| ↳ | java.lang.RuntimeException | |||
| ↳ | com.google.firebase.ai.type.FirebaseAIException |
APINotConfiguredException |
The Firebase project has not been configured and enabled for the selected API. |
AudioRecordInitializationFailedException |
Audio record initialization failures for audio streaming |
ContentBlockedException |
|
FirebaseAIOnDeviceInvalidRequestException |
The parameters used in the request are not valid. |
FirebaseAIOnDeviceNotAvailableException |
An operation has been requested, but device doesn't support local models, or they are not available. |
FirebaseAIOnDeviceUnknownException |
Catch all case for exceptions not explicitly expected. |
FirebaseAutoFunctionException |
Thrown when a function invoked by the model has an error that should be returned to the model |
InvalidAPIKeyException |
The provided API Key is not valid. |
InvalidLocationException |
The specified Vertex AI location is invalid. |
InvalidStateException |
Some form of state occurred that shouldn't have. |
PermissionMissingException |
The request is missing a permission that is required to perform the requested operation. |
PromptBlockedException |
A request was blocked. |
QuotaExceededException |
The request has hit a quota limit. |
RequestTimeoutException |
A request took too long to complete. |
ResponseStoppedException |
A request was stopped during generation for some reason. |
SerializationException |
Something went wrong while trying to deserialize a response from the server. |
ServerException |
The server responded with a non 200 response code. |
ServiceConnectionHandshakeFailedException |
Handshake failed with the server |
ServiceDisabledException |
The service is not enabled for this Firebase project. |
SessionAlreadyReceivingException |
Streaming session already receiving. |
UnknownException |
Catch all case for exceptions not explicitly expected. |
UnsupportedUserLocationException |
The user's location (region) is not supported by the API. |
Parent class for any errors that occur from the FirebaseAI SDK.
Summary
Inherited methods |
|---|