logoalt Hacker News

EPWN3Dlast Sunday at 8:59 PM0 repliesview on HN

You basically want a modern errno. I don't mean that as a dig at you -- I've found POSIX error codes to still be the best way to design errors in C. If it can't be evaluated by switch, then it's too complicated.