type/Exceptions library
Functions
-
from(
dynamic cause) → GoogleGenerativeAIException -
Converts a
dynamic
to a GoogleGenerativeAIException.
Exceptions / Errors
- GoogleGenerativeAIException
- Parent class for any errors that occur from GenerativeModel.
- InvalidStateException
- Some form of state occurred that shouldn't have.
- PromptBlockedException
- A request was blocked for some reason.
- 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.