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.
55 lines (28 loc) • 878 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [\_Production](./rc-js-util._production.md) > [error](./rc-js-util._production.error.md)
## \_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:**
```typescript
static error(message: string): never;
```
## 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:**
never