Fix stupid exception handling

This commit is contained in:
Simon Giesel 2019-04-23 12:06:54 +02:00
parent 64604b9bf5
commit 0a5ac00e5b

View file

@ -14,7 +14,7 @@ public class PersonService {
person.addHobby(Hobbies.HOBBY4); person.addHobby(Hobbies.HOBBY4);
person.addHobby(Hobbies.HOBBY5); person.addHobby(Hobbies.HOBBY5);
person.addHobby(Hobbies.HOBBY6); person.addHobby(Hobbies.HOBBY6);
} catch (Exception e) { } catch (NoFreeTimeException e) {
System.err.println("NoFreeTimeException"); System.err.println("NoFreeTimeException");
} }
System.out.println(person); System.out.println(person);