5 points · by gafaar · 10y ago · 4 comments
I think this is bad advice honestly. Who does this anyway?
Of course, a better approach is to not throw at all, and leverage a type system to force the consumer to deal with potential error: `getUser: Try[Option[User]]` for example. More verbose, and forces you to handle all the cases, but safer and less error prone.