GitHub

daffTransformMagentoError

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