Use wrapError
Append the old error message to the new one and keep its stack trace. Example: throw wrapError(e, HighLevelError, "This error is more specific");
Generated using TypeDoc
Use wrapError