Why do so many Java web frameworks encourage throwing exceptions for things like validation errors and 404s?
I find it odd how most examples fully encourage throwing NotFoundExceptions or ValidationExceptions throughout rest apis to be handled by some magic exception handler elsewhere in the code. It's essentially using exceptions for control flow which is ...
Aug 25, 2017B