@lelantos-org/sdk / core/errors / WorkerRpcError
Class: WorkerRpcError<C> โ
Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:141
A worker RPC call failed. cause carries the reconstructed remote error, whose stack is the one from inside the worker; this error's own stack is the call site on the main thread.
Generic in its code for the same reason as NetworkError.
Extends โ
WalletError<C>
Type Parameters โ
| Type Parameter | Default type |
|---|---|
C extends WorkerErrorCode | WorkerErrorCode |
Constructors โ
Constructor โ
new WorkerRpcError<C>(
code,
message,
opts?
): WorkerRpcError<C>;Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:143
Parameters โ
| Parameter | Type |
|---|---|
code | C |
message | string |
opts? | WalletErrorOptions & object |
Returns โ
WorkerRpcError<C>
Overrides โ
Properties โ
cause? โ
optional cause?: unknown;Defined in: typescript/lib/lib.es2022.error.d.ts:26
Inherited from โ
code โ
readonly code: C;Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:42
Inherited from โ
context โ
readonly context: ErrorContext;Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:43
Inherited from โ
message โ
message: string;Defined in: typescript/lib/lib.es5.d.ts:1077
Inherited from โ
method? โ
readonly optional method?: string;Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:142
name โ
name: string;Defined in: typescript/lib/lib.es5.d.ts:1076
Inherited from โ
stack? โ
optional stack?: string;Defined in: typescript/lib/lib.es5.d.ts:1078
Inherited from โ
Methods โ
withContext() โ
withContext(extra): this;Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:46
Merge additional context in place and return this for rethrowing.
Parameters โ
| Parameter | Type |
|---|---|
extra | ErrorContext |
Returns โ
this