Skip to main content
注意: 此页面尚未翻译成中文。以下内容为英文原版。
Returns a new Error configured to the format quais emits errors, with the message, ErrorCode code and additional properties for the corresponding quaisError. Each error in quais includes the version of quais, a machine-readable ErrorCode, and depending on code, additional required properties. The error message will also include the message, quais version, code and all additional properties, serialized.

Type parameters

Parameters

Returns

T The new error.

Source

utils/errors.ts:691