ModelNetworkError
Defined in: src/errors.ts:142
Error thrown when the network connection to the model provider fails, before or while the response is received.
Retrying the same request may succeed. The default model retry strategy retries it, like ModelThrottledError.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ModelNetworkError(message, options?): ModelNetworkError;Defined in: src/errors.ts:149
Creates a new ModelNetworkError.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
message | string | Error message describing the network failure |
options? | ErrorOptions | Optional error options including cause for error chaining |
Returns
Section titled “Returns”ModelNetworkError