Home > rc-js-util > _Production > createError
Creates an Error with the given message. If _BUILD.DEBUG is true and _BUILD.DISABLE_BREAKPOINT_FLAG is false or unset then a breakpoint will be hit first. Should not be used for “expected” errors (bad input etc).
Signature:
static createError(message: string): Error;
| Parameter | Type | Description | 
|---|---|---|
| message | string | 
Returns:
Error