Interface ErrLookupFn

Hierarchy

  • ErrLookupFn
  • This function is a lifecycle hook inside the mapping tool which will get trigered if a currentRejection arise on the current iteration (inside of the Tranformation phase or the validation phase).

    Remarks

    It will also reitarate any non currentRejection which happened on a previous iteration indicated by the currentRejection flag being turnd off (value of false).

    Returns

    OnlySideEffect: Do not return any value is trigered syncrounously.

    Parameters

    • reason: any

      The reason provided by the catch clause inside the mapping routine.

    • index: number

      The zero based index provided by map or similarly an index provided by the mapping routine.

    • currentRejection: boolean

      Flag that indicates if the exception was hapening on the curent iteration of the mapping routine or if it was part of a previously raised exception that was already part of the item currently being mapped from the ptovided collection.

    Returns OnlySideEffect

Generated using TypeDoc v0.23.24