js-util

Home > rc-js-util > _Production

_Production class

Utilities for production builds.

Signature:

export declare class _Production 

Methods

Method Modifiers Description
assertValueIsNever(_value) static A function that will error if ever called. The parameter is asserted to be never, useful with switch statements, union types etc.
createError(message) static 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).
error(message) static