CartUserErrorEntry

cart · /core·type

A single field-scoped validation error returned by the upstream provider. Consumers display these to users; field is undefined when the error is not attributable to a specific input field.

Properties

message
string
field?
string

Example

const entries: CartUserErrorEntry[] = [
  { field: 'discountCode', message: 'Code has expired' },
];
throw new CartUserError(entries);

RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter

Sourceerrors.ts:99Edit the JSDoc directly

On this page