Endo API documentation
    Preparing search index...

    Function getErrorConstructor

    • Because the error constructor returned by this function might be AggregateError, which has different construction parameters from the other error constructors, do not use it directly to try to make an error instance. Rather, use makeError which encapsulates this non-uniformity.

      Parameters

      • name: string

      Returns undefined | GenericErrorConstructor