Function checkError

  • Checks an error against a predicate recursively. This handles both AggregateError and Error. This recursively checks against the cause property.

    Parameters

    • error: unknown
    • p: ((error) => boolean)
        • (error): boolean
        • Parameters

          • error: unknown

          Returns boolean

    • visited: Set<unknown> = ...

    Returns boolean

Generated using TypeDoc