MosaicErrorMapper<TCustomInfo>: ((error, context?) => MosaicErrorInfo | undefined)

Type Parameters

  • TCustomInfo = any

Type declaration

    • (error, context?): MosaicErrorInfo | undefined
    • A mapper function that takes an Error and maps it to a more user-friendly error. An extra context can optionally be passed to customize the mapping logic.

      Parameters

      • error: Error
      • Optional context: TCustomInfo

      Returns MosaicErrorInfo | undefined

Generated using TypeDoc