Throw a custom UnsupportedError Error instance with the given message.
UnsupportedError
Optional
The message to include in the exception
import { throwUnsupported } from "@nevware21/ts-utils";if (!window) { throwUnsupported("A window is needed for this operation");} Copy
import { throwUnsupported } from "@nevware21/ts-utils";if (!window) { throwUnsupported("A window is needed for this operation");}
Throw a custom
UnsupportedError
Error instance with the given message.