Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.qu.ai/llms.txt

Use this file to discover all available pages before exploring further.

function makeError<K, T>(
   message, 
   code, 
   info?): T
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

ParameterTypeDescription
messagestringThe error message.
codeKThe error code.
info?ErrorInfo<T>Additional properties for the error.

Returns

T The new error.

Source

utils/errors.ts:691