How do I know which exceptions to catch (java)?
Posted on 2011-04-29
I'm new to Java so bear with me.
I'm trying to figure out how I know which exceptions to catch. I read that I should catch all exceptions.
Do I need to read the Java documentation for every method I use and find out which exceptions it might catch?
Do I need to enclose all methods that throws an exception in to a separate try/catch block. Seems like a lot of work or is there an easier way...?