Skip to content

@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 โ€‹

Type Parameters โ€‹

Type ParameterDefault type
C extends WorkerErrorCodeWorkerErrorCode

Constructors โ€‹

Constructor โ€‹

ts
new WorkerRpcError<C>(
   code, 
   message, 
   opts?
): WorkerRpcError<C>;

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

Parameters โ€‹

ParameterType
codeC
messagestring
opts?WalletErrorOptions & object

Returns โ€‹

WorkerRpcError<C>

Overrides โ€‹

WalletError.constructor

Properties โ€‹

cause? โ€‹

ts
optional cause?: unknown;

Defined in: typescript/lib/lib.es2022.error.d.ts:26

Inherited from โ€‹

WalletError.cause


code โ€‹

ts
readonly code: C;

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

Inherited from โ€‹

WalletError.code


context โ€‹

ts
readonly context: ErrorContext;

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

Inherited from โ€‹

WalletError.context


message โ€‹

ts
message: string;

Defined in: typescript/lib/lib.es5.d.ts:1077

Inherited from โ€‹

WalletError.message


method? โ€‹

ts
readonly optional method?: string;

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


name โ€‹

ts
name: string;

Defined in: typescript/lib/lib.es5.d.ts:1076

Inherited from โ€‹

WalletError.name


stack? โ€‹

ts
optional stack?: string;

Defined in: typescript/lib/lib.es5.d.ts:1078

Inherited from โ€‹

WalletError.stack

Methods โ€‹

withContext() โ€‹

ts
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 โ€‹

ParameterType
extraErrorContext

Returns โ€‹

this

Inherited from โ€‹

WalletError.withContext

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