@glideapps/ts-necessities
    Preparing search index...

    Function exceptionToError

    • Returns the exception e as an instance of Error. If e is already an Error, it just returns e, otherwise it returns an error with exceptionToString(e).

      Parameters

      • e: unknown

      Returns Error