@coolwallets/errors
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

Errors

version

You can import our custom errors from this npm package.

Install

npm install coolwallets@errors

Usage

import { NotRegistered } from '@coolwallets/errors'
try {
  await wallet.createWallet(12)
} catch (error) {
  if  (error instanceof NotRegistered) {
    // popup Not Register Notification
  } else {
    throw error
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @coolwallets/errors

Weekly Downloads

46

Version

0.0.8

License

ISC

Unpacked Size

76.3 kB

Total Files

25

Last publish

Collaborators

  • coolwallet-team