Exception Handling in Off Topic
|
|
I'm learning Java at the moment and I've come across exceptions in various tutorials yet I don't quite understand them. Do you have to manually tell it what error message gets sent when something exceptional happens (such as divison by zero)? What else can they be used for? (I know that a program doesn't crash when a method throws an exception if you use a try..catch block.)
|