Function throwUnsupported

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

    Parameters

    • Optional message: string

      The message to include in the exception

    Returns never

    Example

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

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