js-util

Home > rc-js-util > _Production > error

_Production.error() method

Warning: This API is now obsolete.

Throws 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 error(message: string): never;

Parameters

Parameter Type Description
message string  

Returns:

never