matrix-appservice-bridge
    Preparing search index...

    Function wrapError

    • Append the old error message to the new one and keep its stack trace. Example: throw wrapError(e, HighLevelError, "This error is more specific");

      Type Parameters

      Parameters

      • oldError: unknown
      • newErrorType: new (message: string) => T
      • message: string = ""

      Returns EventNotHandledError