GitHub

daffTransformMagentoError

function

import { daffTransformMagentoError } from '@daffodil/driver/magento'

Transforms the passed error according to the lookup in the passed map.

function daffTransformMagentoError<T extends DaffErrorCodeMap>(
  error: any
  map: T
): DaffError

Parameters

Parametererror: any
Description
Parametermap: T
Description