Closed hsubox76 closed 2 months ago
Fixes https://github.com/google-gemini/generative-ai-js/issues/82
Creates a new GoogleGenerativeAIFetchError that extends GoogleGenerativeAIError with additional properties:
GoogleGenerativeAIFetchError
GoogleGenerativeAIError
status
statusText
errorDetails
error.details
Export all error classes.
Fixes https://github.com/google-gemini/generative-ai-js/issues/82
Creates a new
GoogleGenerativeAIFetchError
that extendsGoogleGenerativeAIError
with additional properties:status
- http status codestatusText
- http status texterrorDetails
- if the error response contained a json with anerror.details
field, which may include fields such as type and reasonExport all error classes.