PitchKit
API Reference@pitchkit/data-providersindexType aliases

DataProviderErrorKind

type DataProviderErrorKind = "network" | "http" | "parse" | "schema";

Defined in: packages/data-providers/src/errors.ts:8

Every failure this package raises, so a consumer can catch one type and still tell the cases apart via kind. The demo app in examples/react-nextjs leans on exactly this: a bad URL, a 404, a CORS rejection and "valid JSON, but not the file you thought" all need distinguishable messages, and a bare Error can't carry that.