FirebaseVertexAIException

public class FirebaseVertexAIException extends RuntimeException

Known direct subclasses
InvalidAPIKeyException

The server responded that the API Key is not valid.

InvalidLocationException

The specified Vertex AI location is invalid.

InvalidStateException

Some form of state occurred that shouldn't have.

PromptBlockedException

A request was blocked for some reason.

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.

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 FirebaseVertexAI SDK.

Summary

Nested types

Protected constructors

Protected constructors

FirebaseVertexAIException

protected FirebaseVertexAIException(@NonNull String message, Throwable cause)