GitHub

DaffProductOutOfStockError

Error

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
  __proto__: Error
  recoverable: boolean = false
  name: string
  message: string
  stack: string
}