CartCapabilityUnsupportedError
●cart · /core·class
Thrown by the kernel when a mutation requires a capability the active adapter doesn't advertise (e.g. gift cards on a provider without them).
Signature
Example
if (!caps.giftCards) throw new CartCapabilityUnsupportedError('giftCards');Related
RunCartAdapterContractOpts runCartAdapterContract CartError CartNotFoundError CartProviderError CartUserError CartAdapter CartEventBus
MetadataOpen in GitHub ↗
CartCapabilities
Feature flags advertised by every . The kernel checks these before calling optional adapter methods, allowing hosts to also branch on capabilities without probi
CartError
Base class for every cartcore domain error. Consumers match on error.name rather than instanceof because cartcore errors can cross package boundaries (SSR → cli