I'm wondering how/when to best approach exception handling in a program.
It's not about how to technically deal with any exception in particular, but about strategies to deal appropriately with exceptions, in general.
Might sound simplistic, but my first question would be... When (at what stage of the programming phase/process) do you generally deal with exceptions?
1- As you code, you deal with the possible exceptions right away (before finishing a class, a even a small method), where they seem likely to happen,
2- or once a big block of code is written (e.g. : an entire class, or even the whole program...) then you deal with the possible exceptions...
Thanks.