discv5
discv5 copied to clipboard
Develop and throw specific Error()s
Define all expected and possible error causes beforehand and throw the Error classes with added metadata. @wemeetagain Proposed to do something similar in @chainsafe/lodestar
and it might be useful to do the same in upstream dependencies.