@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 โ
| Parameter | Type |
|---|---|
err | unknown |
context | ErrorContext |
Returns โ
unknown