@lelantos-org/sdk / core/errors / EnvironmentError
Class: EnvironmentError โ
Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:69
A required platform capability is missing (Web Crypto, workers, fetch).
Extends โ
WalletError<"ENVIRONMENT">
Constructors โ
Constructor โ
ts
new EnvironmentError(message, opts?): EnvironmentError;Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:70
Parameters โ
| Parameter | Type |
|---|---|
message | string |
opts? | WalletErrorOptions |
Returns โ
EnvironmentError
Overrides โ
Properties โ
cause? โ
ts
optional cause?: unknown;Defined in: typescript/lib/lib.es2022.error.d.ts:26
Inherited from โ
code โ
ts
readonly code: "ENVIRONMENT";Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:42
Inherited from โ
context โ
ts
readonly context: ErrorContext;Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:43
Inherited from โ
message โ
ts
message: string;Defined in: typescript/lib/lib.es5.d.ts:1077
Inherited from โ
name โ
ts
name: string;Defined in: typescript/lib/lib.es5.d.ts:1076
Inherited from โ
stack? โ
ts
optional stack?: string;Defined in: typescript/lib/lib.es5.d.ts:1078
Inherited from โ
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 โ
| Parameter | Type |
|---|---|
extra | ErrorContext |
Returns โ
this