@nevware21/ts-utils
    Preparing search index...

    Interface CustomErrorConstructor<T>

    Defines the definition of the custom error constructor Used by: createCustomError

    interface CustomErrorConstructor<T extends Error = Error> {
        new CustomErrorConstructor(message?: string): T;
        new CustomErrorConstructor(message?: string): Error;
        prototype: T;
        (message?: string): T;
        (message?: string): Error;
    }

    Type Parameters

    • T extends Error = Error

    Hierarchy

    • ErrorConstructor
      • CustomErrorConstructor
    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalmessage: string

      Returns T

    • Parameters

      • Optionalmessage: string

      Returns Error

    Properties

    prototype: T