From 0a5ac00e5b46abc9b871e606a7ce1933d81ad86e Mon Sep 17 00:00:00 2001 From: Simon Giesel Date: Tue, 23 Apr 2019 12:06:54 +0200 Subject: [PATCH] Fix stupid exception handling --- de.hhn.ai.prog2.blatt1.exceptions/src/app/PersonService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);