When to use Exceptions vs Error Objects vs just plain false/null
I think it’s impossible to give a definitive answer here, because choices like this are personal preference. Consider that what follows is my approach, and I have no presumption it is the right one. What I can say for sure is that you should avoid your third option: Just return null/false This is bad under … Read more