js-util

Home > rc-js-util > _Production > createError

_Production.createError() method

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;

Parameters

Parameter Type Description
message string  

Returns:

Error