Error codes are not exported anywhere #2669
-
|
There are numerous error codes available in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Some modules define their own errors, for when they are too implementation-specific to include in |
Beta Was this translation helpful? Give feedback.
-
|
@achingbrain |
Beta Was this translation helpful? Give feedback.
@libp2p/interfaceexports...Errortypes reused by other libp2p modules and services. These all have a static.nameproperty that can be used to detect thrown errors.Some modules define their own errors, for when they are too implementation-specific to include in
@libp2p/interfacebut these should be exported by the relevant modules. Sometimes things are missed though, so if they are not and you spot ones that are not exported, please open a PR to export them.