GitHub

DaffProductOutOfStockError

import { DaffProductOutOfStockError } from '@daffodil/cart/driver'

An error thrown when a cart item's requested quantity exceeds the amount currently in stock.

class DaffProductOutOfStockError extends DaffInheritableError implements DaffError {
  readonly code: string = DaffCartDriverErrorCodes.PRODUCT_OUT_OF_STOCK
}