diff --git a/de.hhn.ai.prog2.blatt1.exceptions/src/app/PersonService.java b/de.hhn.ai.prog2.blatt1.exceptions/src/app/PersonService.java index 1703919..2ff7c14 100644 --- a/de.hhn.ai.prog2.blatt1.exceptions/src/app/PersonService.java +++ b/de.hhn.ai.prog2.blatt1.exceptions/src/app/PersonService.java @@ -14,7 +14,7 @@ public class PersonService { person.addHobby(Hobbies.HOBBY4); person.addHobby(Hobbies.HOBBY5); person.addHobby(Hobbies.HOBBY6); - } catch (Exception e) { + } catch (NoFreeTimeException e) { System.err.println("NoFreeTimeException"); } System.out.println(person);