GitHub

DaffCartInvalidAPIResponseError

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

An error thrown when the platform's API response is missing required information or malformed in an unrecoverable way.

class DaffCartInvalidAPIResponseError extends DaffInheritableError implements DaffError {
  readonly code: string = DaffCartDriverErrorCodes.INVALID_API_RESPONSE
  message: string
}