Skip to content

Error codes are not exported anywhere #2669

Closed Answered by achingbrain
mkermani144 asked this question in Q&A
Discussion options

You must be logged in to vote

@libp2p/interface exports ...Error types reused by other libp2p modules and services. These all have a static .name property 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/interface but 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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mkermani144
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants