API ReferenceErrorsClass
WalletNotConnectedError
This error is thrown if, based on configuration, the SDK expects the browser wallet to be unlocked, but it is not. If this error is thrown, the parent app should prompt the user to unlock their wallet.
Extends
Extended by
Constructors
Constructor
new WalletNotConnectedError(message, cause?): WalletNotConnectedError;Parameters
| Parameter | Type |
|---|---|
message | string |
cause? | unknown |
Returns
WalletNotConnectedError
Overrides
Methods
walk()
walk<T>(errorType): T | undefined;Checks if the provided ErrorType is in the error hierarchy for the current error.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends Error | The type of the error being searched for. |
Parameters
| Parameter | Type | Description |
|---|---|---|
errorType | (…args) => T | The error type to find. |
Returns
T | undefined
The error, if it is found in the hierarchy, otherwise undefined.