getAlby / js-sdk

JavaScript SDK for the Alby OAuth2 Wallet API and the Nostr Wallet Connect API.
https://npmjs.com/package/@getalby/sdk
63 stars 16 forks source link

fix: use actual error objects in NWC Client #209

Closed rolznz closed 8 months ago

rolznz commented 8 months ago
bumi commented 8 months ago

How about we introduce some more error classes depending on when the error happens.?

e.g. Timeout error, wallet error,

those inherit from the nip47 error but are a bit more specific. then as a developer I can easily catch the specific type or error

rolznz commented 8 months ago

@bumi I've added some more error classes, could you have another look?