Skip to Content

whatsapp-mcp


whatsapp-mcp / utils/meta-errors / mapMetaError

Function: mapMetaError()

function mapMetaError(envelope): MetaError;

Defined in: src/utils/meta-errors.ts:117 

Map a Meta error envelope to the most specific typed error class.

Parameters

envelope

MetaErrorEnvelope

Returns

MetaError

Remarks

Unknown codes are passed through as the base MetaError; callers should still recognise this — it preserves the raw code on the instance.