CartUserError

cart · /core·class

Thrown when the upstream provider rejects a mutation due to caller-supplied input (e.g. invalid discount code, quantity exceeds stock). Retry middleware does NOT retry these.

Signature

Example

if (response.userErrors.length > 0) {
  throw new CartUserError(response.userErrors);
}

RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartAdapter CartEventBus

Sourceerrors.ts:113Edit the JSDoc directly

On this page