Closed
Description
What is the problem this feature will solve?
It would allow userland to leverage core's error system. It would also make discussions around vendoring ecosystem modules into core go more smoothly (if package authors were willing to use it).
I am willing to do the work if people think this is a good idea.
What is the feature you are proposing to solve the problem?
Exposing the constructors for https://nodejs.org/api/errors.html#nodejs-error-codes to userland.
What alternatives have you considered?
Status quo