Errors
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
}
}