output
    Preparing search index...

    Function hasErrorType

    • Checks whether an error or any error in its cause chain matches an Error class.

      Temporal Application Failures are matched through their serialized type, in addition to standard instanceof and name checks.

      Type Parameters

      • T extends Error

      Parameters

      • error: unknown

        Error or failure chain to inspect

      • ErrorType: new (...args: never[]) => T

        Error class to match

      Returns boolean

      Whether the Error class appears in the chain