Is returning null after exception is caught bad design [closed]
I would say don’t catch the exception if you really can’t handle it. And logging isn’t considered handling an error. Better to bubble it up to someone who can by throwing the exception. If you must return a value, and null is the only sensible thing, there’s nothing wrong with that. Just document it and … Read more