GitHub

DaffProductInsufficientStockError

Error

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

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

class DaffProductInsufficientStockError extends DaffInheritableError implements DaffError {
  readonly code: string = DaffCartDriverErrorCodes.PRODUCT_INSUFFICIENT_STOCK
  __proto__: Error
  recoverable: boolean = false
  name: string
  message: string
  stack: string
}