Polyman Documentation - v2.2.2
    Preparing search index...

    Function throwError

    • Throws an error, ensuring it's an Error instance. If the input is not an Error, wraps it in one.

      Parameters

      • error: unknown

        Error to throw

      • Optionalmessage: string = ''

        Additional context message

      Returns never

      Always throws

      throwError(new Error('Something went wrong'));