Skip to content

@lelantos-org/sdk / index / ErrorContext

Interface: ErrorContext ​

Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:13

Ambient facts about the operation that failed, populated as the error travels outward, so a failure deep in a swap still reports the id and name of its operation.

Closed: facts specific to one failure are typed fields on its class, or WalletError.details.

Properties ​

method? ​

ts
optional method?: string;

Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:21

HTTP method, or the worker/RPC method that failed.


op? ​

ts
optional op?: string;

Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:17

Operation name, e.g. "deposit" or "swap:leg1".


opId? ​

ts
optional opId?: string;

Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:15

Correlation id, minted once per wallet operation.


url? ​

ts
optional url?: string;

Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:19

Redacted URL of the request that failed.