NetworkError
Class: NetworkError
Section titled “Class: NetworkError”Defined in: packages/fetch-kit/src/errors.ts:15
Thrown when the network call itself fails (DNS, offline, CORS, refused).
The original error is exposed on cause.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new NetworkError(
message?):NetworkError
Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
Returns
Section titled “Returns”NetworkError
Inherited from
Section titled “Inherited from”Constructor
Section titled “Constructor”new NetworkError(
message?,options?):NetworkError
Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
options?
Section titled “options?”ErrorOptions
Returns
Section titled “Returns”NetworkError
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”
readonlyname:"NetworkError"="NetworkError"
Defined in: packages/fetch-kit/src/errors.ts:16