CartProviderError
●cart · /core·class
Thrown for transport / upstream-API failures (network, 5xx, malformed payloads). Retry middleware treats this as retryable.
Signature
Example
try {
response = await fetch(endpoint);
} catch (err) {
throw new CartProviderError('network request failed', err);
}Related
RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartUserError CartAdapter CartEventBus
MetadataOpen in GitHub ↗
CartNotFoundError
Thrown by adapters when a cart id is resolvable in the request but no cart exists upstream — distinct from a transport failure.
CartUserErrorEntry
A single fieldscoped validation error returned by the upstream provider. Consumers display these to users; field is undefined when the error is not attributable