Skip to content

@lelantos-org/sdk / core/errors / attachContext

Function: attachContext() โ€‹

ts
function attachContext(err, context): unknown;

Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:52

Attach context to anything thrown. Typed SDK errors are enriched in place; anything else is wrapped so the context is never lost.

Parameters โ€‹

ParameterType
errunknown
contextErrorContext

Returns โ€‹

unknown

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub