UNPKG

@mysten/dapp-kit

Version:

A collection of React hooks and components for interacting with the Sui blockchain and wallets.

25 lines (20 loc) 933 B
// Copyright (c) Mysten Labs, Inc. // SPDX-License-Identifier: Apache-2.0 /** * An error that is instantiated when someone attempts to perform an action that requires an active wallet connection. */ export class WalletNotConnectedError extends Error {} /** * An error that is instantiated when someone attempts to perform an action that requires a selected wallet account. * This is more of an edge case stemming from the fact that wallets don't technically require you to authorize any * accounts when connecting a wallet. */ export class WalletNoAccountSelectedError extends Error {} /** * An error that is instantiated when someone attempts to perform an action that isn't supported by a wallet. */ export class WalletFeatureNotSupportedError extends Error {} /** * An error that is instantiated when a wallet account can't be found for a specific wallet. */ export class WalletAccountNotFoundError extends Error {}