ApiServerError class
Exception thrown for 5XX server error responses from the Google GenAI API.
- Inheritance
-
- Object
- GoogleGenAiError
- ApiServerError
Constructors
- ApiServerError({required int statusCode, required String body, ApiError? error, String? message})
- Creates an ApiServerError for a 5XX HTTP response.
Properties
- body → String
-
Raw HTTP response body.
finalinherited
- error → ApiError?
-
Parsed backend ApiError details when available.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Developer-facing error message surfaced from error or body.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
HTTP status code of the response.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited