@nevware21/ts-utils

    Function throwUnsupported

    • Throw a custom UnsupportedError Error instance with the given message.

      Parameters

      • Optionalmessage: string

        The message to include in the exception

      Returns never

      import { throwUnsupported } from "@nevware21/ts-utils";

      if (!window) {
      throwUnsupported("A window is needed for this operation");
      }
    MMNEPVFCICPMFPCPTTAAATR