Re:Log level 'error' should mean that something needs to be ...
by energy123 on Saturday December 20, 2025 @10:31PM
(#46342005)
That's a matter of good taste, but there's nothing preventing you from throwing exceptions on every issue and requiring consumers to handle them
[ Parent
| on HN ]
Re:Log level 'error' should mean that something needs to be ...
by makeitdouble on Sunday December 21, 2025 @05:41AM
(#46343853)
Imagine you have a caching library that handles DB fallback. A cache that should be there but goes missing is arguably an issue.
Should if throw an exception for that to let you know, or should it gracefully fallback so your service stays alive ? The middle ground is leaving a log and chugging along, your proposition throws that out of the window.