We're learning about throwing exceptions in Deitel's book. I get the concept ok, but don't see the value of it.
The typical example is catching an attempt to divide by zero. Why not just test for that, or whatever, in an if statement or similar. Maybe call another function if need be, without the bother of try, throw and catch? It seems more work than needed. I must be missing something, but what? Thanks.