@lelantos-org/sdk / internal / attachContext
Function: attachContext()
ts
function attachContext(err, context): unknown;Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:59
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