Open tooolbox opened 3 years ago
Your suggestions are valuable. Thanks for taking the time to formulate them as an actionable list.
RegisterTypeMigration could perhaps be part of the "forwarded methods" so it shows up in the main package, looks like I currently need to import errbase to get at it.
Done in commit b33d88a
For @knz
I was looking through the docs trying to find out how to register a migrated error, and it took me a little bit. So I wanted to suggest how to make that more visible, and then I thought while I'm at it, a couple more suggestions:
RegisterTypeMigration
could perhaps be part of the "forwarded methods" so it shows up in the main package, looks like I currently need to importerrbase
to get at it.exthttp
package is mentioned as a useful tool, more as an example for when you're building your own error types, but I think it adds value. Alsoextgrpc
isn't mentioned, although that one's entirely my fault because I never added docs for the work I did πI'm aware that I'm armchair-quarterbacking and should probably put a PR where my mouth is, but I'm in the middle of other things and just felt compelled to jot down some notes. Interested to hear your thoughts!