Gemini.Error (GeminiEx v0.2.1)
View SourceStandardized error structure for Gemini client.
Summary
Types
API-specific error code or reason, if provided by Gemini.
Additional details or context about the error.
A human-readable message describing the error.
The type of error.
The HTTP status code, if the error originated from an HTTP response.
The original error term, if this error is wrapping another.
Functions
Create an API error from Gemini response.
Create a configuration error.
Create an HTTP error.
Create an invalid response error.
Create a network/connection error.
Create a new error with type and message.
Create a JSON serialization/deserialization error.
Create a request validation error.
Types
@type api_reason() :: term() | nil
API-specific error code or reason, if provided by Gemini.
@type error_details() :: map() | nil
Additional details or context about the error.
@type error_message() :: String.t()
A human-readable message describing the error.
@type error_type() :: atom()
The type of error.
@type http_status() :: integer() | nil
The HTTP status code, if the error originated from an HTTP response.
@type original_error() :: term() | nil
The original error term, if this error is wrapping another.
Functions
Create an API error from Gemini response.
Create a configuration error.
Create an HTTP error.
Create an invalid response error.
Create a network/connection error.
Create a new error with type and message.
Create a JSON serialization/deserialization error.
Create a request validation error.