waku-org / js-waku

JavaScript implementation of Waku v2
https://js.waku.org
Apache License 2.0
166 stars 42 forks source link

feat(metadata): use error codes #1903

Closed danisharora099 closed 5 months ago

danisharora099 commented 5 months ago

Problem

Protocols currently use different pattern to handle errors. Light push uses error code while filter uses exception.

It is best for the user if a common pattern is used across the API. Also, there is an opportunity to re-use error code across the codebase and have similar pattern on the user side to handle them

Solution

Notes

Contribution checklist:

danisharora099 commented 5 months ago

superseded by https://github.com/waku-org/js-waku/pull/1904