UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

52 lines (25 loc) 855 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [\_Production](./rc-js-util._production.md) &gt; [createError](./rc-js-util._production.createerror.md) ## \_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:** ```typescript static createError(message: string): Error; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> message </td><td> string </td><td> </td></tr> </tbody></table> **Returns:** Error