Skip to content

Endo API documentation - v0.2.0 / Exports / @endo/common / throw-labeled

Module: throw-labeled ​

Table of contents ​

Functions ​

Functions ​

throwLabeled ​

▸ throwLabeled(innerErr, label, errConstructor?, options?): never

Given an error innerErr and a label, throws a similar error whose message string is ${label}: ${innerErr.message}. See applyLabelingError for the motivating use.

Parameters ​

NameTypeDefault value
innerErrErrorundefined
labelstring | numberundefined
errConstructor?GenericErrorConstructorundefined
options?AssertMakeErrorOptionsundefined

Returns ​

never

Defined in ​

throw-labeled.js:14