Hacker News new | ask | show | jobs
by mrkeen 2196 days ago
This is what interfaces are for.

Let your caller bring their own error type and instantiate your library code over that.