This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
I am running line of code that will execute Ejb remote/local method I want to be sure that I will handle every exception possible Should i use Throwable or RuntimeException whats the difference anyway? Thank you Sharon
posted 8 years ago
You need to go through the Exceptions part of the Java tutorial. You should be catching anything your method declares in its javadoc or throws clause. Not usually a good idea to try catching everything, but if you insist then catch Exception.