Hacker News new | ask | show | jobs
by barrkel 2432 days ago
How do you convince every other library that you might sandwich on your call stack to use your error library so your error data gets passed through correctly?
2 comments

Well, at this point, don't you just wrap the error? Isn't that the point of this post?
And stack trace in the middle?
The other library doesn't have to use your error library, it just needs to preserve your error when passing through. To make this a common practise, this proposal was made.