Made Exceptions catch specific exceptions instead of any exceptions

Made the catching of Exceptions to specific exceptions, instead of catching all/any exception. Java Etiquette